(1.3ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0)  (0.9ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar)  (0.9ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)   (0.9ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)  (0.5ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (0.9ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20151118031237')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150901153531') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.1ms) begin transaction  (0.1ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_post_types" already exists: CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) rollback transaction  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.2ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618224344"]]  (0.8ms) commit transaction Migrating to CreatePulitzerContentElementTypes (20150618225402)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618225402"]]  (0.7ms) commit transaction Migrating to CreatePulitzerPosts (20150619204615)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204615"]]  (0.7ms) commit transaction Migrating to CreatePulitzerContentElements (20150619204708)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "post_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204708"]]  (0.8ms) commit transaction Migrating to CreatePulitzerTags (20150619213436)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213436"]]  (0.8ms) commit transaction Migrating to CreatePulitzerPostTags (20150619213457)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213457"]]  (0.8ms) commit transaction Migrating to CreatePulitzerPostTypeContentElementTypes (20150619215914)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619215914"]]  (0.8ms) commit transaction Migrating to AddPluralAndTemplateToPulitzerPostTypes (20150629195832)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_post_types" ADD "plural" boolean  (0.2ms) ALTER TABLE "pulitzer_post_types" ADD "template" boolean SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150629195832"]]  (0.7ms) commit transaction Migrating to AddPulitzerContentElementTypes (20150702150819)  (0.0ms) begin transaction Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text' LIMIT 1 SQL (0.8ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", "2016-01-14 22:36:36.810489"], ["updated_at", "2016-01-14 22:36:36.810489"]] Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-14 22:36:36.817072"], ["updated_at", "2016-01-14 22:36:36.817072"]] Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-14 22:36:36.820893"], ["updated_at", "2016-01-14 22:36:36.820893"]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150702150819"]]  (0.8ms) commit transaction Migrating to AddSlugToPulitzerPosts (20150724150230)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "pulitzer_posts" ADD "slug" varchar  (0.4ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150724150230"]]  (0.9ms) commit transaction Migrating to CreateSearchLocations (20150901153531)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150901153531"]]  (0.8ms) commit transaction Migrating to ChangeLabelTypeFromPulitzerPostTags (20150902212741)  (0.0ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_post_tags"  (0.3ms) DROP TABLE "pulitzer_post_tags"  (0.1ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "apulitzer_post_tags"  (0.3ms) DROP TABLE "apulitzer_post_tags" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150902212741"]]  (1.0ms) commit transaction Migrating to AddTextEditorToPulitzerPostTypeContentElementTypes (20151026180630)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_post_type_content_element_types" ADD "text_editor" varchar SQL (0.1ms) UPDATE "pulitzer_post_type_content_element_types" SET "text_editor" = 'None' WHERE "pulitzer_post_type_content_element_types"."id" IN (SELECT "pulitzer_post_type_content_element_types"."id" FROM "pulitzer_post_type_content_element_types" ORDER BY "pulitzer_post_type_content_element_types"."id" ASC) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151026180630"]]  (0.7ms) commit transaction Migrating to CreatePulitzerVersions (20151029194354)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029194354"]]  (0.8ms) commit transaction Migrating to ChangePostElementsToVersions (20151029220558)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "pulitzer_content_elements"  (0.2ms) DROP TABLE "pulitzer_content_elements"  (0.1ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "apulitzer_content_elements"  (0.1ms) DROP TABLE "apulitzer_content_elements"  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_post_tags"  (0.4ms) DROP TABLE "pulitzer_post_tags"  (0.1ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "apulitzer_post_tags"  (0.2ms) DROP TABLE "apulitzer_post_tags" Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" ORDER BY "pulitzer_posts"."id" ASC LIMIT 1000 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029220558"]]  (0.9ms) commit transaction Migrating to AddPostTypeContentElementAttributesToContentElements (20151113183344)  (0.4ms) begin transaction  (0.5ms) ALTER TABLE "pulitzer_content_elements" ADD "text_editor" varchar  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "height" integer DEFAULT 100  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "width" integer DEFAULT 100  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "sort_order" integer Scoped order and limit are ignored, it's forced to be batch order and batch size Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1000 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151113183344"]]  (0.8ms) commit transaction Migrating to ChangeTemplateToPulitzerPostTypes (20151116162508)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "template" boolean)   (0.0ms) SELECT * FROM "pulitzer_post_types"  (0.2ms) DROP TABLE "pulitzer_post_types"  (0.1ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean)  (0.0ms) SELECT * FROM "apulitzer_post_types"  (0.1ms) DROP TABLE "apulitzer_post_types"  (0.3ms) ALTER TABLE "pulitzer_post_types" ADD "kind" integer DEFAULT 0 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151116162508"]]  (0.8ms) commit transaction Migrating to AddKindToPulitzerContentElements (20151118031237)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_content_elements" ADD "kind" integer DEFAULT 0 SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151118031237"]]  (1.4ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_pulitzer_posts_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_posts_on_slug' AND type='index'  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) DELETE FROM "pulitzer_content_element_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) 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.7ms) 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.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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.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.7ms) 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';  (0.7ms) 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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:36:45.122856"], ["updated_at", "2016-01-14 22:36:45.122856"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-14 22:36:45.242588"], ["updated_at", "2016-01-14 22:36:45.242588"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:36:45.254093"], ["updated_at", "2016-01-14 22:36:45.254093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:36:45.256653"], ["updated_at", "2016-01-14 22:36:45.256653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (9.3ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-14 22:36:45.278813"], ["updated_at", "2016-01-14 22:36:45.278813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-14 22:36:45.282389"], ["updated_at", "2016-01-14 22:36:45.282389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-14 22:36:45.285557"], ["updated_at", "2016-01-14 22:36:45.285557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-14 22:36:45.287633"], ["updated_at", "2016-01-14 22:36:45.287633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-14 22:36:45.290638"], ["updated_at", "2016-01-14 22:36:45.290638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-14 22:36:45.293042"], ["updated_at", "2016-01-14 22:36:45.293042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:36:45.298457"], ["updated_at", "2016-01-14 22:36:45.298457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 2], ["slug", "winterfell-news-2"], ["created_at", "2016-01-14 22:36:45.301170"], ["updated_at", "2016-01-14 22:36:45.301170"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 2], ["created_at", "2016-01-14 22:36:45.302988"], ["updated_at", "2016-01-14 22:36:45.302988"]]  (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", 2], ["created_at", "2016-01-14 22:36:45.304534"], ["updated_at", "2016-01-14 22:36:45.304534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 4], ["created_at", "2016-01-14 22:36:45.309549"], ["updated_at", "2016-01-14 22:36:45.309549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 4], ["created_at", "2016-01-14 22:36:45.312337"], ["updated_at", "2016-01-14 22:36:45.312337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 4], ["created_at", "2016-01-14 22:36:45.315162"], ["updated_at", "2016-01-14 22:36:45.315162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:36:45.326330"], ["updated_at", "2016-01-14 22:36:45.326330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-14 22:36:45.329511"], ["updated_at", "2016-01-14 22:36:45.329511"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:36:45.334602"], ["updated_at", "2016-01-14 22:36:45.334602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:36:45.338676"], ["updated_at", "2016-01-14 22:36:45.338676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-14 22:36:45.345146"], ["updated_at", "2016-01-14 22:36:45.345146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-14 22:36:45.349184"], ["updated_at", "2016-01-14 22:36:45.349184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-14 22:36:45.357103"], ["updated_at", "2016-01-14 22:36:45.357103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-14 22:36:45.362951"], ["updated_at", "2016-01-14 22:36:45.362951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-14 22:36:45.368706"], ["updated_at", "2016-01-14 22:36:45.368706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-14 22:36:45.373641"], ["updated_at", "2016-01-14 22:36:45.373641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:36:45.382209"], ["updated_at", "2016-01-14 22:36:45.382209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 2], ["slug", "winterfell-news-4"], ["created_at", "2016-01-14 22:36:45.386069"], ["updated_at", "2016-01-14 22:36:45.386069"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 2], ["created_at", "2016-01-14 22:36:45.388492"], ["updated_at", "2016-01-14 22:36:45.388492"]]  (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", 2], ["created_at", "2016-01-14 22:36:45.390806"], ["updated_at", "2016-01-14 22:36:45.390806"]]  (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.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 4], ["created_at", "2016-01-14 22:36:45.399828"], ["updated_at", "2016-01-14 22:36:45.399828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 4], ["created_at", "2016-01-14 22:36:45.405560"], ["updated_at", "2016-01-14 22:36:45.405560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 4], ["created_at", "2016-01-14 22:36:45.409735"], ["updated_at", "2016-01-14 22:36:45.409735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 4]] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["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.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:36:45.423478"], ["updated_at", "2016-01-14 22:36:45.423478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-14 22:36:45.439706"], ["updated_at", "2016-01-14 22:36:45.439706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-14 22:36:45.442357"], ["updated_at", "2016-01-14 22:36:45.442357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-14 22:36:45.445124"], ["updated_at", "2016-01-14 22:36:45.445124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-14 22:36:45.446434"], ["updated_at", "2016-01-14 22:36:45.446434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-14 22:36:45.449185"], ["updated_at", "2016-01-14 22:36:45.449185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-14 22:36:45.450750"], ["updated_at", "2016-01-14 22:36:45.450750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-14 22:36:45.455355"], ["updated_at", "2016-01-14 22:36:45.455355"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:36:45.457732"], ["updated_at", "2016-01-14 22:36:45.457732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-14 22:36:45.466886"], ["updated_at", "2016-01-14 22:36:45.466886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-14 22:36:45.471413"], ["updated_at", "2016-01-14 22:36:45.471413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-14 22:36:45.475874"], ["updated_at", "2016-01-14 22:36:45.475874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-14 22:36:45.485429"], ["updated_at", "2016-01-14 22:36:45.485429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "created_at", "updated_at") VALUES (?, ?, ?) [["label", "a"], ["created_at", "2016-01-14 22:36:45.499388"], ["updated_at", "2016-01-14 22:36:45.499388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-14 22:36:45.516657"], ["updated_at", "2016-01-14 22:36:45.516657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-14 22:36:45.521347"], ["updated_at", "2016-01-14 22:36:45.521347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-14 22:36:45.526203"], ["updated_at", "2016-01-14 22:36:45.526203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-14 22:36:45.532365"], ["updated_at", "2016-01-14 22:36:45.532365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-14 22:36:45.534658"], ["updated_at", "2016-01-14 22:36:45.534658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-14 22:36:45.541205"], ["updated_at", "2016-01-14 22:36:45.541205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-14 22:36:45.543569"], ["updated_at", "2016-01-14 22:36:45.543569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-14 22:36:45.549229"], ["updated_at", "2016-01-14 22:36:45.549229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-14 22:36:45.554771"], ["updated_at", "2016-01-14 22:36:45.554771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-14 22:36:45.559966"], ["updated_at", "2016-01-14 22:36:45.559966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:36:45.636908"], ["updated_at", "2016-01-14 22:36:45.636908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:36:45.651093"], ["updated_at", "2016-01-14 22:36:45.651093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-14 22:36:45.654174"], ["updated_at", "2016-01-14 22:36:45.654174"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:36:45.656432"], ["updated_at", "2016-01-14 22:36:45.656432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:36:45.661487"], ["updated_at", "2016-01-14 22:36:45.661487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-14 22:36:45.664197"], ["updated_at", "2016-01-14 22:36:45.664197"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:36:45.666851"], ["updated_at", "2016-01-14 22:36:45.666851"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-14 22:36:45.670635"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-14 22:36:45.685509"], ["updated_at", "2016-01-14 22:36:45.685509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:36:45.692278"], ["updated_at", "2016-01-14 22:36:45.692278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-14 22:36:45.695293"], ["updated_at", "2016-01-14 22:36:45.695293"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:36:45.697491"], ["updated_at", "2016-01-14 22:36:45.697491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:36:45.702176"], ["updated_at", "2016-01-14 22:36:45.702176"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:36:45.729638"], ["updated_at", "2016-01-14 22:36:45.729638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-14 22:36:45.733252"], ["updated_at", "2016-01-14 22:36:45.733252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-14 22:36:45.775819"], ["updated_at", "2016-01-14 22:36:45.775819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:36:45.788758"], ["updated_at", "2016-01-14 22:36:45.788758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-14 22:36:45.791914"], ["updated_at", "2016-01-14 22:36:45.791914"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:36:45.793857"], ["updated_at", "2016-01-14 22:36:45.793857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.9ms) 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.4ms) 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.7ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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.6ms) 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.7ms) 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';  (0.7ms) 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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:39:33.257664"], ["updated_at", "2016-01-14 22:39:33.257664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-14 22:39:33.391497"], ["updated_at", "2016-01-14 22:39:33.391497"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:39:33.401100"], ["updated_at", "2016-01-14 22:39:33.401100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:39:33.403756"], ["updated_at", "2016-01-14 22:39:33.403756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-14 22:39:33.417919"], ["updated_at", "2016-01-14 22:39:33.417919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-14 22:39:33.421358"], ["updated_at", "2016-01-14 22:39:33.421358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-14 22:39:33.434949"], ["updated_at", "2016-01-14 22:39:33.434949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-14 22:39:33.437841"], ["updated_at", "2016-01-14 22:39:33.437841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-14 22:39:33.441328"], ["updated_at", "2016-01-14 22:39:33.441328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-14 22:39:33.443780"], ["updated_at", "2016-01-14 22:39:33.443780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:39:33.449015"], ["updated_at", "2016-01-14 22:39:33.449015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 2], ["slug", "winterfell-news-2"], ["created_at", "2016-01-14 22:39:33.451452"], ["updated_at", "2016-01-14 22:39:33.451452"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 2], ["created_at", "2016-01-14 22:39:33.453250"], ["updated_at", "2016-01-14 22:39:33.453250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 2], ["created_at", "2016-01-14 22:39:33.454872"], ["updated_at", "2016-01-14 22:39:33.454872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 4], ["created_at", "2016-01-14 22:39:33.459948"], ["updated_at", "2016-01-14 22:39:33.459948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 4], ["created_at", "2016-01-14 22:39:33.463228"], ["updated_at", "2016-01-14 22:39:33.463228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 4], ["created_at", "2016-01-14 22:39:33.466026"], ["updated_at", "2016-01-14 22:39:33.466026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:39:33.477284"], ["updated_at", "2016-01-14 22:39:33.477284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-14 22:39:33.480105"], ["updated_at", "2016-01-14 22:39:33.480105"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:39:33.482754"], ["updated_at", "2016-01-14 22:39:33.482754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:39:33.484848"], ["updated_at", "2016-01-14 22:39:33.484848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-14 22:39:33.492524"], ["updated_at", "2016-01-14 22:39:33.492524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-14 22:39:33.496070"], ["updated_at", "2016-01-14 22:39:33.496070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-14 22:39:33.502797"], ["updated_at", "2016-01-14 22:39:33.502797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-14 22:39:33.506857"], ["updated_at", "2016-01-14 22:39:33.506857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-14 22:39:33.513471"], ["updated_at", "2016-01-14 22:39:33.513471"]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-14 22:39:33.519406"], ["updated_at", "2016-01-14 22:39:33.519406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:39:33.526252"], ["updated_at", "2016-01-14 22:39:33.526252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 2], ["slug", "winterfell-news-4"], ["created_at", "2016-01-14 22:39:33.531727"], ["updated_at", "2016-01-14 22:39:33.531727"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 2], ["created_at", "2016-01-14 22:39:33.536351"], ["updated_at", "2016-01-14 22:39:33.536351"]]  (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", 2], ["created_at", "2016-01-14 22:39:33.538824"], ["updated_at", "2016-01-14 22:39:33.538824"]]  (0.1ms) 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::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 4], ["created_at", "2016-01-14 22:39:33.545335"], ["updated_at", "2016-01-14 22:39:33.545335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 4], ["created_at", "2016-01-14 22:39:33.551058"], ["updated_at", "2016-01-14 22:39:33.551058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 4], ["created_at", "2016-01-14 22:39:33.557530"], ["updated_at", "2016-01-14 22:39:33.557530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] 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 LIMIT 1 [["version_id", 4]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:39:33.569855"], ["updated_at", "2016-01-14 22:39:33.569855"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-14 22:39:33.588109"], ["updated_at", "2016-01-14 22:39:33.588109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-14 22:39:33.590573"], ["updated_at", "2016-01-14 22:39:33.590573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-14 22:39:33.593171"], ["updated_at", "2016-01-14 22:39:33.593171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-14 22:39:33.594561"], ["updated_at", "2016-01-14 22:39:33.594561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-14 22:39:33.596965"], ["updated_at", "2016-01-14 22:39:33.596965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-14 22:39:33.598536"], ["updated_at", "2016-01-14 22:39:33.598536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-14 22:39:33.604160"], ["updated_at", "2016-01-14 22:39:33.604160"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:39:33.606014"], ["updated_at", "2016-01-14 22:39:33.606014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-14 22:39:33.614067"], ["updated_at", "2016-01-14 22:39:33.614067"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-14 22:39:33.619926"], ["updated_at", "2016-01-14 22:39:33.619926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-14 22:39:33.625157"], ["updated_at", "2016-01-14 22:39:33.625157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-14 22:39:33.635840"], ["updated_at", "2016-01-14 22:39:33.635840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-14 22:39:33.641932"], ["updated_at", "2016-01-14 22:39:33.641932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-14 22:39:33.650221"], ["updated_at", "2016-01-14 22:39:33.650221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-14 22:39:33.658977"], ["updated_at", "2016-01-14 22:39:33.658977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.3ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-14 22:39:33.678023"], ["updated_at", "2016-01-14 22:39:33.678023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-14 22:39:33.684080"], ["updated_at", "2016-01-14 22:39:33.684080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-14 22:39:33.689005"], ["updated_at", "2016-01-14 22:39:33.689005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-14 22:39:33.694369"], ["updated_at", "2016-01-14 22:39:33.694369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 13' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-14 22:39:33.696653"], ["updated_at", "2016-01-14 22:39:33.696653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-14 22:39:33.702763"], ["updated_at", "2016-01-14 22:39:33.702763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 14' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-14 22:39:33.705762"], ["updated_at", "2016-01-14 22:39:33.705762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-14 22:39:33.711614"], ["updated_at", "2016-01-14 22:39:33.711614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-14 22:39:33.717838"], ["updated_at", "2016-01-14 22:39:33.717838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-14 22:39:33.723891"], ["updated_at", "2016-01-14 22:39:33.723891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:39:33.800767"], ["updated_at", "2016-01-14 22:39:33.800767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:39:33.813783"], ["updated_at", "2016-01-14 22:39:33.813783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-14 22:39:33.816766"], ["updated_at", "2016-01-14 22:39:33.816766"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:39:33.819104"], ["updated_at", "2016-01-14 22:39:33.819104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:39:33.824113"], ["updated_at", "2016-01-14 22:39:33.824113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-14 22:39:33.827607"], ["updated_at", "2016-01-14 22:39:33.827607"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:39:33.829832"], ["updated_at", "2016-01-14 22:39:33.829832"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-14 22:39:33.833331"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-14 22:39:33.847091"], ["updated_at", "2016-01-14 22:39:33.847091"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:39:33.852693"], ["updated_at", "2016-01-14 22:39:33.852693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-14 22:39:33.859244"], ["updated_at", "2016-01-14 22:39:33.859244"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:39:33.861052"], ["updated_at", "2016-01-14 22:39:33.861052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:39:33.862654"], ["updated_at", "2016-01-14 22:39:33.862654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) commit transaction  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:39:33.891726"], ["updated_at", "2016-01-14 22:39:33.891726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-14 22:39:33.895260"], ["updated_at", "2016-01-14 22:39:33.895260"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.5ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-14 22:39:33.940034"], ["updated_at", "2016-01-14 22:39:33.940034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-14 22:39:33.954128"], ["updated_at", "2016-01-14 22:39:33.954128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-14 22:39:33.957381"], ["updated_at", "2016-01-14 22:39:33.957381"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-14 22:39:33.959512"], ["updated_at", "2016-01-14 22:39:33.959512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) DELETE FROM "pulitzer_content_element_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (1.2ms) 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.1ms) DELETE FROM "pulitzer_tags";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_tags';  (1.1ms) DELETE FROM "pulitzer_post_type_content_element_types";  (0.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 "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (1.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.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';  (1.0ms) DELETE FROM "pulitzer_post_tags";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (1.1ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.0ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:05:22.159318"], ["updated_at", "2016-01-20 22:05:22.159318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-20 22:05:22.291334"], ["updated_at", "2016-01-20 22:05:22.291334"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:05:22.300158"], ["updated_at", "2016-01-20 22:05:22.300158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:05:22.302497"], ["updated_at", "2016-01-20 22:05:22.302497"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-20 22:05:22.325813"], ["updated_at", "2016-01-20 22:05:22.325813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:05:22.328507"], ["updated_at", "2016-01-20 22:05:22.328507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-20 22:05:22.332165"], ["updated_at", "2016-01-20 22:05:22.332165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:05:22.333894"], ["updated_at", "2016-01-20 22:05:22.333894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-20 22:05:22.336870"], ["updated_at", "2016-01-20 22:05:22.336870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:05:22.338401"], ["updated_at", "2016-01-20 22:05:22.338401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:05:22.344747"], ["updated_at", "2016-01-20 22:05:22.344747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 2], ["slug", "winterfell-news-2"], ["created_at", "2016-01-20 22:05:22.349077"], ["updated_at", "2016-01-20 22:05:22.349077"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 2], ["created_at", "2016-01-20 22:05:22.351179"], ["updated_at", "2016-01-20 22:05:22.351179"]]  (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", 2], ["created_at", "2016-01-20 22:05:22.353121"], ["updated_at", "2016-01-20 22:05:22.353121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.7ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:05:22.360831"], ["updated_at", "2016-01-20 22:05:22.360831"]]  (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 1 [["slug", "winterfell-news-3"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-20 22:05:22.363618"], ["updated_at", "2016-01-20 22:05:22.363618"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:05:22.365566"], ["updated_at", "2016-01-20 22:05:22.365566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:05:22.367672"], ["updated_at", "2016-01-20 22:05:22.367672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-20 22:05:22.370944"], ["updated_at", "2016-01-20 22:05:22.370944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:05:22.375065"], ["updated_at", "2016-01-20 22:05:22.375065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-20 22:05:22.381095"], ["updated_at", "2016-01-20 22:05:22.381095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:05:22.383653"], ["updated_at", "2016-01-20 22:05:22.383653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-20 22:05:22.389399"], ["updated_at", "2016-01-20 22:05:22.389399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:05:22.392483"], ["updated_at", "2016-01-20 22:05:22.392483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:05:22.400111"], ["updated_at", "2016-01-20 22:05:22.400111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.9ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 2], ["slug", "winterfell-news-4"], ["created_at", "2016-01-20 22:05:22.405487"], ["updated_at", "2016-01-20 22:05:22.405487"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 2], ["created_at", "2016-01-20 22:05:22.408998"], ["updated_at", "2016-01-20 22:05:22.408998"]]  (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", 2], ["created_at", "2016-01-20 22:05:22.412776"], ["updated_at", "2016-01-20 22:05:22.412776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:05:22.423542"], ["updated_at", "2016-01-20 22:05:22.423542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-20 22:05:22.437167"], ["updated_at", "2016-01-20 22:05:22.437167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-20 22:05:22.442153"], ["updated_at", "2016-01-20 22:05:22.442153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-20 22:05:22.446165"], ["updated_at", "2016-01-20 22:05:22.446165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-20 22:05:22.448318"], ["updated_at", "2016-01-20 22:05:22.448318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-20 22:05:22.452896"], ["updated_at", "2016-01-20 22:05:22.452896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-20 22:05:22.454743"], ["updated_at", "2016-01-20 22:05:22.454743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-20 22:05:22.470376"], ["updated_at", "2016-01-20 22:05:22.470376"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:05:22.472180"], ["updated_at", "2016-01-20 22:05:22.472180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-20 22:05:22.480997"], ["updated_at", "2016-01-20 22:05:22.480997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-20 22:05:22.485360"], ["updated_at", "2016-01-20 22:05:22.485360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-20 22:05:22.489470"], ["updated_at", "2016-01-20 22:05:22.489470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-20 22:05:22.500266"], ["updated_at", "2016-01-20 22:05:22.500266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-20 22:05:22.505790"], ["updated_at", "2016-01-20 22:05:22.505790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-20 22:05:22.537512"], ["updated_at", "2016-01-20 22:05:22.537512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-20 22:05:22.549555"], ["updated_at", "2016-01-20 22:05:22.549555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-20 22:05:22.554183"], ["updated_at", "2016-01-20 22:05:22.554183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-20 22:05:22.560346"], ["updated_at", "2016-01-20 22:05:22.560346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:05:22.565862"], ["updated_at", "2016-01-20 22:05:22.565862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:05:22.567725"], ["updated_at", "2016-01-20 22:05:22.567725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:05:22.574610"], ["updated_at", "2016-01-20 22:05:22.574610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:05:22.576475"], ["updated_at", "2016-01-20 22:05:22.576475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-20 22:05:22.583124"], ["updated_at", "2016-01-20 22:05:22.583124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-20 22:05:22.588082"], ["updated_at", "2016-01-20 22:05:22.588082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-20 22:05:22.593269"], ["updated_at", "2016-01-20 22:05:22.593269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:05:22.761315"], ["updated_at", "2016-01-20 22:05:22.761315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:05:22.777873"], ["updated_at", "2016-01-20 22:05:22.777873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-20 22:05:22.781905"], ["updated_at", "2016-01-20 22:05:22.781905"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:05:22.784198"], ["updated_at", "2016-01-20 22:05:22.784198"]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:05:22.790840"], ["updated_at", "2016-01-20 22:05:22.790840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-20 22:05:22.794378"], ["updated_at", "2016-01-20 22:05:22.794378"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:05:22.799883"], ["updated_at", "2016-01-20 22:05:22.799883"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-20 22:05:22.803189"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-20 22:05:22.820006"], ["updated_at", "2016-01-20 22:05:22.820006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:05:22.826479"], ["updated_at", "2016-01-20 22:05:22.826479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-20 22:05:22.830653"], ["updated_at", "2016-01-20 22:05:22.830653"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:05:22.832976"], ["updated_at", "2016-01-20 22:05:22.832976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:05:22.835241"], ["updated_at", "2016-01-20 22:05:22.835241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:05:22.852068"], ["updated_at", "2016-01-20 22:05:22.852068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-20 22:05:22.855702"], ["updated_at", "2016-01-20 22:05:22.855702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-20 22:05:22.899432"], ["updated_at", "2016-01-20 22:05:22.899432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:05:22.915653"], ["updated_at", "2016-01-20 22:05:22.915653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-20 22:05:22.919811"], ["updated_at", "2016-01-20 22:05:22.919811"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:05:22.921975"], ["updated_at", "2016-01-20 22:05:22.921975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction 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.1ms) 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 "search_locations";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (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.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.7ms) 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';  (0.7ms) 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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:10:46.464379"], ["updated_at", "2016-01-20 22:10:46.464379"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-20 22:10:46.580679"], ["updated_at", "2016-01-20 22:10:46.580679"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:10:46.590149"], ["updated_at", "2016-01-20 22:10:46.590149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:10:46.593135"], ["updated_at", "2016-01-20 22:10:46.593135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-20 22:10:46.608271"], ["updated_at", "2016-01-20 22:10:46.608271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:10:46.611100"], ["updated_at", "2016-01-20 22:10:46.611100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-20 22:10:46.614400"], ["updated_at", "2016-01-20 22:10:46.614400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:10:46.616118"], ["updated_at", "2016-01-20 22:10:46.616118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-20 22:10:46.619214"], ["updated_at", "2016-01-20 22:10:46.619214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:10:46.620697"], ["updated_at", "2016-01-20 22:10:46.620697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:10:46.624923"], ["updated_at", "2016-01-20 22:10:46.624923"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:10:46.611100"], ["updated_at", "2016-01-20 22:10:46.611100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:10:46.632161"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:10:46.616118"], ["updated_at", "2016-01-20 22:10:46.616118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:10:46.637363"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:10:46.620697"], ["updated_at", "2016-01-20 22:10:46.620697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:10:46.641460"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:10:46.644393"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:10:46.651919"], ["updated_at", "2016-01-20 22:10:46.651919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-20 22:10:46.654375"], ["updated_at", "2016-01-20 22:10:46.654375"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:10:46.656512"], ["updated_at", "2016-01-20 22:10:46.656512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:10:46.658765"], ["updated_at", "2016-01-20 22:10:46.658765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-20 22:10:46.661828"], ["updated_at", "2016-01-20 22:10:46.661828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:10:46.663360"], ["updated_at", "2016-01-20 22:10:46.663360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-20 22:10:46.666002"], ["updated_at", "2016-01-20 22:10:46.666002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:10:46.667460"], ["updated_at", "2016-01-20 22:10:46.667460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-20 22:10:46.669975"], ["updated_at", "2016-01-20 22:10:46.669975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:10:46.671330"], ["updated_at", "2016-01-20 22:10:46.671330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:10:46.673155"], ["updated_at", "2016-01-20 22:10:46.673155"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:10:46.663360"], ["updated_at", "2016-01-20 22:10:46.663360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:10:46.678970"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:10:46.667460"], ["updated_at", "2016-01-20 22:10:46.667460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:10:46.683596"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:10:46.671330"], ["updated_at", "2016-01-20 22:10:46.671330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:10:46.691177"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:10:46.692964"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:10:46.705971"], ["updated_at", "2016-01-20 22:10:46.705971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-20 22:10:46.715278"], ["updated_at", "2016-01-20 22:10:46.715278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-20 22:10:46.717512"], ["updated_at", "2016-01-20 22:10:46.717512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-20 22:10:46.720007"], ["updated_at", "2016-01-20 22:10:46.720007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-20 22:10:46.721285"], ["updated_at", "2016-01-20 22:10:46.721285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-20 22:10:46.723355"], ["updated_at", "2016-01-20 22:10:46.723355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-20 22:10:46.724552"], ["updated_at", "2016-01-20 22:10:46.724552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-20 22:10:46.729079"], ["updated_at", "2016-01-20 22:10:46.729079"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:10:46.730676"], ["updated_at", "2016-01-20 22:10:46.730676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-20 22:10:46.737703"], ["updated_at", "2016-01-20 22:10:46.737703"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-20 22:10:46.742591"], ["updated_at", "2016-01-20 22:10:46.742591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-20 22:10:46.749353"], ["updated_at", "2016-01-20 22:10:46.749353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-20 22:10:46.758423"], ["updated_at", "2016-01-20 22:10:46.758423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-20 22:10:46.763475"], ["updated_at", "2016-01-20 22:10:46.763475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-20 22:10:46.784865"], ["updated_at", "2016-01-20 22:10:46.784865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-20 22:10:46.797995"], ["updated_at", "2016-01-20 22:10:46.797995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-20 22:10:46.803077"], ["updated_at", "2016-01-20 22:10:46.803077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-20 22:10:46.808041"], ["updated_at", "2016-01-20 22:10:46.808041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:10:46.813652"], ["updated_at", "2016-01-20 22:10:46.813652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:10:46.815356"], ["updated_at", "2016-01-20 22:10:46.815356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:10:46.821475"], ["updated_at", "2016-01-20 22:10:46.821475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:10:46.823426"], ["updated_at", "2016-01-20 22:10:46.823426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-20 22:10:46.831393"], ["updated_at", "2016-01-20 22:10:46.831393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-20 22:10:46.836267"], ["updated_at", "2016-01-20 22:10:46.836267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-20 22:10:46.841624"], ["updated_at", "2016-01-20 22:10:46.841624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:10:46.968250"], ["updated_at", "2016-01-20 22:10:46.968250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:10:46.987791"], ["updated_at", "2016-01-20 22:10:46.987791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-20 22:10:46.990946"], ["updated_at", "2016-01-20 22:10:46.990946"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:10:46.993407"], ["updated_at", "2016-01-20 22:10:46.993407"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:10:46.999784"], ["updated_at", "2016-01-20 22:10:46.999784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-20 22:10:47.003751"], ["updated_at", "2016-01-20 22:10:47.003751"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:10:47.005638"], ["updated_at", "2016-01-20 22:10:47.005638"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-20 22:10:47.009006"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-20 22:10:47.024435"], ["updated_at", "2016-01-20 22:10:47.024435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:10:47.029407"], ["updated_at", "2016-01-20 22:10:47.029407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-20 22:10:47.032673"], ["updated_at", "2016-01-20 22:10:47.032673"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:10:47.034571"], ["updated_at", "2016-01-20 22:10:47.034571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:10:47.036242"], ["updated_at", "2016-01-20 22:10:47.036242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:10:47.051005"], ["updated_at", "2016-01-20 22:10:47.051005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-20 22:10:47.055093"], ["updated_at", "2016-01-20 22:10:47.055093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-20 22:10:47.098526"], ["updated_at", "2016-01-20 22:10:47.098526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:10:47.110948"], ["updated_at", "2016-01-20 22:10:47.110948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-20 22:10:47.115340"], ["updated_at", "2016-01-20 22:10:47.115340"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:10:47.117248"], ["updated_at", "2016-01-20 22:10:47.117248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.5ms) 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.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.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.8ms) 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';  (0.8ms) 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';  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:31.331991"], ["updated_at", "2016-01-20 22:11:31.331991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-20 22:11:31.452369"], ["updated_at", "2016-01-20 22:11:31.452369"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:31.460499"], ["updated_at", "2016-01-20 22:11:31.460499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:31.462901"], ["updated_at", "2016-01-20 22:11:31.462901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-20 22:11:31.476513"], ["updated_at", "2016-01-20 22:11:31.476513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:11:31.479965"], ["updated_at", "2016-01-20 22:11:31.479965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-20 22:11:31.482957"], ["updated_at", "2016-01-20 22:11:31.482957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:11:31.485487"], ["updated_at", "2016-01-20 22:11:31.485487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-20 22:11:31.488779"], ["updated_at", "2016-01-20 22:11:31.488779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:11:31.491077"], ["updated_at", "2016-01-20 22:11:31.491077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:11:31.495850"], ["updated_at", "2016-01-20 22:11:31.495850"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:11:31.479965"], ["updated_at", "2016-01-20 22:11:31.479965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:11:31.505209"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:11:31.485487"], ["updated_at", "2016-01-20 22:11:31.485487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:11:31.511639"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:11:31.491077"], ["updated_at", "2016-01-20 22:11:31.491077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:11:31.517263"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:11:31.520578"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:31.528704"], ["updated_at", "2016-01-20 22:11:31.528704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-20 22:11:31.531632"], ["updated_at", "2016-01-20 22:11:31.531632"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:31.534095"], ["updated_at", "2016-01-20 22:11:31.534095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:31.535922"], ["updated_at", "2016-01-20 22:11:31.535922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-20 22:11:31.538912"], ["updated_at", "2016-01-20 22:11:31.538912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:11:31.541152"], ["updated_at", "2016-01-20 22:11:31.541152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-20 22:11:31.543803"], ["updated_at", "2016-01-20 22:11:31.543803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:11:31.545877"], ["updated_at", "2016-01-20 22:11:31.545877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-20 22:11:31.548467"], ["updated_at", "2016-01-20 22:11:31.548467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:11:31.550633"], ["updated_at", "2016-01-20 22:11:31.550633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:11:31.552537"], ["updated_at", "2016-01-20 22:11:31.552537"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:11:31.541152"], ["updated_at", "2016-01-20 22:11:31.541152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:11:31.559084"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:11:31.545877"], ["updated_at", "2016-01-20 22:11:31.545877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:11:31.569235"], ["id", 5]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:11:31.550633"], ["updated_at", "2016-01-20 22:11:31.550633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:11:31.579675"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:11:31.581440"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:31.590576"], ["updated_at", "2016-01-20 22:11:31.590576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-20 22:11:31.598369"], ["updated_at", "2016-01-20 22:11:31.598369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-20 22:11:31.602219"], ["updated_at", "2016-01-20 22:11:31.602219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-20 22:11:31.605006"], ["updated_at", "2016-01-20 22:11:31.605006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-20 22:11:31.606475"], ["updated_at", "2016-01-20 22:11:31.606475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-20 22:11:31.608796"], ["updated_at", "2016-01-20 22:11:31.608796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-20 22:11:31.610022"], ["updated_at", "2016-01-20 22:11:31.610022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-20 22:11:31.615221"], ["updated_at", "2016-01-20 22:11:31.615221"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:31.617151"], ["updated_at", "2016-01-20 22:11:31.617151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-20 22:11:31.626513"], ["updated_at", "2016-01-20 22:11:31.626513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-20 22:11:31.631560"], ["updated_at", "2016-01-20 22:11:31.631560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-20 22:11:31.638910"], ["updated_at", "2016-01-20 22:11:31.638910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-20 22:11:31.649549"], ["updated_at", "2016-01-20 22:11:31.649549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-20 22:11:31.655367"], ["updated_at", "2016-01-20 22:11:31.655367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-20 22:11:31.663962"], ["updated_at", "2016-01-20 22:11:31.663962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:11:31.670436"], ["updated_at", "2016-01-20 22:11:31.670436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-20 22:11:31.688611"], ["updated_at", "2016-01-20 22:11:31.688611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-20 22:11:31.693799"], ["updated_at", "2016-01-20 22:11:31.693799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-20 22:11:31.698457"], ["updated_at", "2016-01-20 22:11:31.698457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:11:31.704138"], ["updated_at", "2016-01-20 22:11:31.704138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 13' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:11:31.706403"], ["updated_at", "2016-01-20 22:11:31.706403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:11:31.711914"], ["updated_at", "2016-01-20 22:11:31.711914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 14' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:11:31.714156"], ["updated_at", "2016-01-20 22:11:31.714156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-20 22:11:31.720085"], ["updated_at", "2016-01-20 22:11:31.720085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-20 22:11:31.725419"], ["updated_at", "2016-01-20 22:11:31.725419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-20 22:11:31.730332"], ["updated_at", "2016-01-20 22:11:31.730332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:31.858097"], ["updated_at", "2016-01-20 22:11:31.858097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:31.873458"], ["updated_at", "2016-01-20 22:11:31.873458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-20 22:11:31.877290"], ["updated_at", "2016-01-20 22:11:31.877290"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:31.879951"], ["updated_at", "2016-01-20 22:11:31.879951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:31.885454"], ["updated_at", "2016-01-20 22:11:31.885454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-20 22:11:31.889168"], ["updated_at", "2016-01-20 22:11:31.889168"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:31.891766"], ["updated_at", "2016-01-20 22:11:31.891766"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-20 22:11:31.896364"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-20 22:11:31.909348"], ["updated_at", "2016-01-20 22:11:31.909348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:31.914062"], ["updated_at", "2016-01-20 22:11:31.914062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-20 22:11:31.917825"], ["updated_at", "2016-01-20 22:11:31.917825"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:31.924339"], ["updated_at", "2016-01-20 22:11:31.924339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:31.926190"], ["updated_at", "2016-01-20 22:11:31.926190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:31.966572"], ["updated_at", "2016-01-20 22:11:31.966572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-20 22:11:31.970542"], ["updated_at", "2016-01-20 22:11:31.970542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-20 22:11:32.013960"], ["updated_at", "2016-01-20 22:11:32.013960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:32.028470"], ["updated_at", "2016-01-20 22:11:32.028470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-20 22:11:32.031706"], ["updated_at", "2016-01-20 22:11:32.031706"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:32.034248"], ["updated_at", "2016-01-20 22:11:32.034248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction 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.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';  (1.0ms) 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 "search_locations";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (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.8ms) 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.7ms) 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';  (0.8ms) 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.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:48.118526"], ["updated_at", "2016-01-20 22:11:48.118526"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-20 22:11:48.234831"], ["updated_at", "2016-01-20 22:11:48.234831"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:48.243244"], ["updated_at", "2016-01-20 22:11:48.243244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:48.245660"], ["updated_at", "2016-01-20 22:11:48.245660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-20 22:11:48.261085"], ["updated_at", "2016-01-20 22:11:48.261085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:11:48.264983"], ["updated_at", "2016-01-20 22:11:48.264983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-20 22:11:48.268860"], ["updated_at", "2016-01-20 22:11:48.268860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:11:48.271268"], ["updated_at", "2016-01-20 22:11:48.271268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-20 22:11:48.274025"], ["updated_at", "2016-01-20 22:11:48.274025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:11:48.276424"], ["updated_at", "2016-01-20 22:11:48.276424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:11:48.281296"], ["updated_at", "2016-01-20 22:11:48.281296"]]  (0.1ms) 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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:11:48.264983"], ["updated_at", "2016-01-20 22:11:48.264983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:11:48.291001"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:11:48.271268"], ["updated_at", "2016-01-20 22:11:48.271268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:11:48.297431"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:11:48.276424"], ["updated_at", "2016-01-20 22:11:48.276424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:11:48.303361"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:11:48.306564"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:48.315223"], ["updated_at", "2016-01-20 22:11:48.315223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-20 22:11:48.318161"], ["updated_at", "2016-01-20 22:11:48.318161"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:48.320403"], ["updated_at", "2016-01-20 22:11:48.320403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:48.322013"], ["updated_at", "2016-01-20 22:11:48.322013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-20 22:11:48.325248"], ["updated_at", "2016-01-20 22:11:48.325248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:11:48.328203"], ["updated_at", "2016-01-20 22:11:48.328203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-20 22:11:48.331441"], ["updated_at", "2016-01-20 22:11:48.331441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:11:48.333758"], ["updated_at", "2016-01-20 22:11:48.333758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-20 22:11:48.336469"], ["updated_at", "2016-01-20 22:11:48.336469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:11:48.338801"], ["updated_at", "2016-01-20 22:11:48.338801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:11:48.340674"], ["updated_at", "2016-01-20 22:11:48.340674"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:11:48.328203"], ["updated_at", "2016-01-20 22:11:48.328203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:11:48.347383"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:11:48.333758"], ["updated_at", "2016-01-20 22:11:48.333758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:11:48.355833"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:11:48.338801"], ["updated_at", "2016-01-20 22:11:48.338801"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:11:48.368434"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:11:48.370473"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:48.379211"], ["updated_at", "2016-01-20 22:11:48.379211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-20 22:11:48.386258"], ["updated_at", "2016-01-20 22:11:48.386258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-20 22:11:48.388870"], ["updated_at", "2016-01-20 22:11:48.388870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-20 22:11:48.391662"], ["updated_at", "2016-01-20 22:11:48.391662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-20 22:11:48.393186"], ["updated_at", "2016-01-20 22:11:48.393186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-20 22:11:48.395528"], ["updated_at", "2016-01-20 22:11:48.395528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-20 22:11:48.396842"], ["updated_at", "2016-01-20 22:11:48.396842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-20 22:11:48.401438"], ["updated_at", "2016-01-20 22:11:48.401438"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:48.403112"], ["updated_at", "2016-01-20 22:11:48.403112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-20 22:11:48.413031"], ["updated_at", "2016-01-20 22:11:48.413031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-20 22:11:48.418353"], ["updated_at", "2016-01-20 22:11:48.418353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-20 22:11:48.423877"], ["updated_at", "2016-01-20 22:11:48.423877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-20 22:11:48.436148"], ["updated_at", "2016-01-20 22:11:48.436148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-20 22:11:48.442655"], ["updated_at", "2016-01-20 22:11:48.442655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-20 22:11:48.452403"], ["updated_at", "2016-01-20 22:11:48.452403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:11:48.461085"], ["updated_at", "2016-01-20 22:11:48.461085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-20 22:11:48.481505"], ["updated_at", "2016-01-20 22:11:48.481505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-20 22:11:48.486274"], ["updated_at", "2016-01-20 22:11:48.486274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-20 22:11:48.491552"], ["updated_at", "2016-01-20 22:11:48.491552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:11:48.497081"], ["updated_at", "2016-01-20 22:11:48.497081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 13' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:11:48.499662"], ["updated_at", "2016-01-20 22:11:48.499662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:11:48.505850"], ["updated_at", "2016-01-20 22:11:48.505850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 14' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:11:48.510592"], ["updated_at", "2016-01-20 22:11:48.510592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-20 22:11:48.517107"], ["updated_at", "2016-01-20 22:11:48.517107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-20 22:11:48.522242"], ["updated_at", "2016-01-20 22:11:48.522242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-20 22:11:48.527571"], ["updated_at", "2016-01-20 22:11:48.527571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:48.654022"], ["updated_at", "2016-01-20 22:11:48.654022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:48.674046"], ["updated_at", "2016-01-20 22:11:48.674046"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-20 22:11:48.678769"], ["updated_at", "2016-01-20 22:11:48.678769"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:48.681110"], ["updated_at", "2016-01-20 22:11:48.681110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:48.685719"], ["updated_at", "2016-01-20 22:11:48.685719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-20 22:11:48.689393"], ["updated_at", "2016-01-20 22:11:48.689393"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:48.693313"], ["updated_at", "2016-01-20 22:11:48.693313"]]  (0.1ms) 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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-20 22:11:48.698476"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-20 22:11:48.710852"], ["updated_at", "2016-01-20 22:11:48.710852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:48.715459"], ["updated_at", "2016-01-20 22:11:48.715459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-20 22:11:48.718306"], ["updated_at", "2016-01-20 22:11:48.718306"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:48.719958"], ["updated_at", "2016-01-20 22:11:48.719958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:48.721436"], ["updated_at", "2016-01-20 22:11:48.721436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:48.745494"], ["updated_at", "2016-01-20 22:11:48.745494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-20 22:11:48.748494"], ["updated_at", "2016-01-20 22:11:48.748494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-20 22:11:48.788210"], ["updated_at", "2016-01-20 22:11:48.788210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:11:48.802056"], ["updated_at", "2016-01-20 22:11:48.802056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-20 22:11:48.804595"], ["updated_at", "2016-01-20 22:11:48.804595"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:11:48.806426"], ["updated_at", "2016-01-20 22:11:48.806426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.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.7ms) DELETE FROM "pulitzer_tags";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) 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 "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (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';  (0.8ms) 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.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';  (0.8ms) 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.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:12:22.466183"], ["updated_at", "2016-01-20 22:12:22.466183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-20 22:12:22.589765"], ["updated_at", "2016-01-20 22:12:22.589765"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:12:22.598199"], ["updated_at", "2016-01-20 22:12:22.598199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:12:22.600845"], ["updated_at", "2016-01-20 22:12:22.600845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-20 22:12:22.615032"], ["updated_at", "2016-01-20 22:12:22.615032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:12:22.618379"], ["updated_at", "2016-01-20 22:12:22.618379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-20 22:12:22.621400"], ["updated_at", "2016-01-20 22:12:22.621400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:12:22.623448"], ["updated_at", "2016-01-20 22:12:22.623448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-20 22:12:22.626238"], ["updated_at", "2016-01-20 22:12:22.626238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:12:22.628162"], ["updated_at", "2016-01-20 22:12:22.628162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:12:22.632562"], ["updated_at", "2016-01-20 22:12:22.632562"]]  (0.1ms) 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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:12:22.618379"], ["updated_at", "2016-01-20 22:12:22.618379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:12:22.641356"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:12:22.623448"], ["updated_at", "2016-01-20 22:12:22.623448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:12:22.648157"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:12:22.628162"], ["updated_at", "2016-01-20 22:12:22.628162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:12:22.653566"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:12:22.656642"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:12:22.664879"], ["updated_at", "2016-01-20 22:12:22.664879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-20 22:12:22.667673"], ["updated_at", "2016-01-20 22:12:22.667673"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:12:22.669692"], ["updated_at", "2016-01-20 22:12:22.669692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:12:22.671266"], ["updated_at", "2016-01-20 22:12:22.671266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-20 22:12:22.673759"], ["updated_at", "2016-01-20 22:12:22.673759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:12:22.675808"], ["updated_at", "2016-01-20 22:12:22.675808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-20 22:12:22.678418"], ["updated_at", "2016-01-20 22:12:22.678418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:12:22.680321"], ["updated_at", "2016-01-20 22:12:22.680321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-20 22:12:22.682822"], ["updated_at", "2016-01-20 22:12:22.682822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:12:22.685114"], ["updated_at", "2016-01-20 22:12:22.685114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:12:22.687109"], ["updated_at", "2016-01-20 22:12:22.687109"]]  (0.1ms) 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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:12:22.675808"], ["updated_at", "2016-01-20 22:12:22.675808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:12:22.694037"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:12:22.680321"], ["updated_at", "2016-01-20 22:12:22.680321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:12:22.700419"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:12:22.685114"], ["updated_at", "2016-01-20 22:12:22.685114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:12:22.705708"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:12:22.707409"], ["id", 3]]  (0.1ms) 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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:12:22.718463"], ["updated_at", "2016-01-20 22:12:22.718463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-20 22:12:22.726832"], ["updated_at", "2016-01-20 22:12:22.726832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-20 22:12:22.729544"], ["updated_at", "2016-01-20 22:12:22.729544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-20 22:12:22.732854"], ["updated_at", "2016-01-20 22:12:22.732854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-20 22:12:22.734648"], ["updated_at", "2016-01-20 22:12:22.734648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-20 22:12:22.736965"], ["updated_at", "2016-01-20 22:12:22.736965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-20 22:12:22.738188"], ["updated_at", "2016-01-20 22:12:22.738188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-20 22:12:22.742737"], ["updated_at", "2016-01-20 22:12:22.742737"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:12:22.744695"], ["updated_at", "2016-01-20 22:12:22.744695"]]  (0.0ms) RELEASE SAVEPOINT active_record_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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-20 22:12:22.754357"], ["updated_at", "2016-01-20 22:12:22.754357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-20 22:12:22.761372"], ["updated_at", "2016-01-20 22:12:22.761372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-20 22:12:22.766858"], ["updated_at", "2016-01-20 22:12:22.766858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-20 22:12:22.776577"], ["updated_at", "2016-01-20 22:12:22.776577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-20 22:12:22.782251"], ["updated_at", "2016-01-20 22:12:22.782251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-20 22:12:22.790834"], ["updated_at", "2016-01-20 22:12:22.790834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:12:22.797898"], ["updated_at", "2016-01-20 22:12:22.797898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-20 22:12:22.816375"], ["updated_at", "2016-01-20 22:12:22.816375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-20 22:12:22.821476"], ["updated_at", "2016-01-20 22:12:22.821476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-20 22:12:22.827117"], ["updated_at", "2016-01-20 22:12:22.827117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:12:22.833007"], ["updated_at", "2016-01-20 22:12:22.833007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 13' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:12:22.835351"], ["updated_at", "2016-01-20 22:12:22.835351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:12:22.842604"], ["updated_at", "2016-01-20 22:12:22.842604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 14' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:12:22.845276"], ["updated_at", "2016-01-20 22:12:22.845276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-20 22:12:22.851599"], ["updated_at", "2016-01-20 22:12:22.851599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-20 22:12:22.856845"], ["updated_at", "2016-01-20 22:12:22.856845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-20 22:12:22.863930"], ["updated_at", "2016-01-20 22:12:22.863930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:12:22.989172"], ["updated_at", "2016-01-20 22:12:22.989172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:12:23.004826"], ["updated_at", "2016-01-20 22:12:23.004826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-20 22:12:23.007461"], ["updated_at", "2016-01-20 22:12:23.007461"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:12:23.009960"], ["updated_at", "2016-01-20 22:12:23.009960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:12:23.017864"], ["updated_at", "2016-01-20 22:12:23.017864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-20 22:12:23.020608"], ["updated_at", "2016-01-20 22:12:23.020608"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:12:23.023039"], ["updated_at", "2016-01-20 22:12:23.023039"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.5ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-20 22:12:23.025861"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-20 22:12:23.046008"], ["updated_at", "2016-01-20 22:12:23.046008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:12:23.050073"], ["updated_at", "2016-01-20 22:12:23.050073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-20 22:12:23.052779"], ["updated_at", "2016-01-20 22:12:23.052779"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:12:23.054353"], ["updated_at", "2016-01-20 22:12:23.054353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:12:23.055774"], ["updated_at", "2016-01-20 22:12:23.055774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:12:23.079683"], ["updated_at", "2016-01-20 22:12:23.079683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-20 22:12:23.082827"], ["updated_at", "2016-01-20 22:12:23.082827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-20 22:12:23.122528"], ["updated_at", "2016-01-20 22:12:23.122528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:12:23.139915"], ["updated_at", "2016-01-20 22:12:23.139915"]]  (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 1 [["slug", "winterfell-news-8"]] SQL (0.9ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-20 22:12:23.144665"], ["updated_at", "2016-01-20 22:12:23.144665"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:12:23.151417"], ["updated_at", "2016-01-20 22:12:23.151417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction 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';  (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.2ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.7ms) 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';  (0.8ms) 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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:04.297704"], ["updated_at", "2016-01-20 22:23:04.297704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-20 22:23:04.416044"], ["updated_at", "2016-01-20 22:23:04.416044"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:04.424498"], ["updated_at", "2016-01-20 22:23:04.424498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:04.426748"], ["updated_at", "2016-01-20 22:23:04.426748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-20 22:23:04.450886"], ["updated_at", "2016-01-20 22:23:04.450886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:23:04.454569"], ["updated_at", "2016-01-20 22:23:04.454569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-20 22:23:04.457787"], ["updated_at", "2016-01-20 22:23:04.457787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:23:04.459820"], ["updated_at", "2016-01-20 22:23:04.459820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-20 22:23:04.462579"], ["updated_at", "2016-01-20 22:23:04.462579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:23:04.464760"], ["updated_at", "2016-01-20 22:23:04.464760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:23:04.469661"], ["updated_at", "2016-01-20 22:23:04.469661"]]  (0.1ms) 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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:04.454569"], ["updated_at", "2016-01-20 22:23:04.454569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:04.479502"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:23:04.459820"], ["updated_at", "2016-01-20 22:23:04.459820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:04.487106"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:23:04.464760"], ["updated_at", "2016-01-20 22:23:04.464760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:04.499784"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:23:04.505137"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:04.518763"], ["updated_at", "2016-01-20 22:23:04.518763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-20 22:23:04.524455"], ["updated_at", "2016-01-20 22:23:04.524455"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:04.528252"], ["updated_at", "2016-01-20 22:23:04.528252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:04.532107"], ["updated_at", "2016-01-20 22:23:04.532107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-20 22:23:04.539579"], ["updated_at", "2016-01-20 22:23:04.539579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:23:04.542664"], ["updated_at", "2016-01-20 22:23:04.542664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-20 22:23:04.546735"], ["updated_at", "2016-01-20 22:23:04.546735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:23:04.550566"], ["updated_at", "2016-01-20 22:23:04.550566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-20 22:23:04.556833"], ["updated_at", "2016-01-20 22:23:04.556833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:23:04.561641"], ["updated_at", "2016-01-20 22:23:04.561641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:23:04.565551"], ["updated_at", "2016-01-20 22:23:04.565551"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:04.542664"], ["updated_at", "2016-01-20 22:23:04.542664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:04.576155"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:23:04.550566"], ["updated_at", "2016-01-20 22:23:04.550566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:04.592047"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:23:04.561641"], ["updated_at", "2016-01-20 22:23:04.561641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:04.598164"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:23:04.599975"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:04.607522"], ["updated_at", "2016-01-20 22:23:04.607522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-20 22:23:04.615179"], ["updated_at", "2016-01-20 22:23:04.615179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-20 22:23:04.617797"], ["updated_at", "2016-01-20 22:23:04.617797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-20 22:23:04.620275"], ["updated_at", "2016-01-20 22:23:04.620275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-20 22:23:04.621604"], ["updated_at", "2016-01-20 22:23:04.621604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-20 22:23:04.623703"], ["updated_at", "2016-01-20 22:23:04.623703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-20 22:23:04.624990"], ["updated_at", "2016-01-20 22:23:04.624990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-20 22:23:04.629799"], ["updated_at", "2016-01-20 22:23:04.629799"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:04.631484"], ["updated_at", "2016-01-20 22:23:04.631484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-20 22:23:04.641156"], ["updated_at", "2016-01-20 22:23:04.641156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-20 22:23:04.646053"], ["updated_at", "2016-01-20 22:23:04.646053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-20 22:23:04.650785"], ["updated_at", "2016-01-20 22:23:04.650785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:04.658158"], ["updated_at", "2016-01-20 22:23:04.658158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-20 22:23:04.660723"], ["updated_at", "2016-01-20 22:23:04.660723"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:04.662519"], ["updated_at", "2016-01-20 22:23:04.662519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:04.664141"], ["updated_at", "2016-01-20 22:23:04.664141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-20 22:23:04.667092"], ["updated_at", "2016-01-20 22:23:04.667092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:23:04.669343"], ["updated_at", "2016-01-20 22:23:04.669343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-20 22:23:04.673109"], ["updated_at", "2016-01-20 22:23:04.673109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:23:04.675362"], ["updated_at", "2016-01-20 22:23:04.675362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-20 22:23:04.678384"], ["updated_at", "2016-01-20 22:23:04.678384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:23:04.680664"], ["updated_at", "2016-01-20 22:23:04.680664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.6ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-20 22:23:04.704398"], ["updated_at", "2016-01-20 22:23:04.704398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-20 22:23:04.710001"], ["updated_at", "2016-01-20 22:23:04.710001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-20 22:23:04.717886"], ["updated_at", "2016-01-20 22:23:04.717886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:04.725510"], ["updated_at", "2016-01-20 22:23:04.725510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-20 22:23:04.743234"], ["updated_at", "2016-01-20 22:23:04.743234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-20 22:23:04.748076"], ["updated_at", "2016-01-20 22:23:04.748076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-20 22:23:04.753531"], ["updated_at", "2016-01-20 22:23:04.753531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:23:04.759278"], ["updated_at", "2016-01-20 22:23:04.759278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 16' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:04.761544"], ["updated_at", "2016-01-20 22:23:04.761544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:23:04.767679"], ["updated_at", "2016-01-20 22:23:04.767679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 17' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:04.771361"], ["updated_at", "2016-01-20 22:23:04.771361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-20 22:23:04.777440"], ["updated_at", "2016-01-20 22:23:04.777440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-20 22:23:04.782446"], ["updated_at", "2016-01-20 22:23:04.782446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-20 22:23:04.788820"], ["updated_at", "2016-01-20 22:23:04.788820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:04.906881"], ["updated_at", "2016-01-20 22:23:04.906881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:04.922378"], ["updated_at", "2016-01-20 22:23:04.922378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-20 22:23:04.926755"], ["updated_at", "2016-01-20 22:23:04.926755"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:04.929775"], ["updated_at", "2016-01-20 22:23:04.929775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:04.935453"], ["updated_at", "2016-01-20 22:23:04.935453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-20 22:23:04.938827"], ["updated_at", "2016-01-20 22:23:04.938827"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:04.942787"], ["updated_at", "2016-01-20 22:23:04.942787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-20 22:23:04.948688"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-20 22:23:04.964001"], ["updated_at", "2016-01-20 22:23:04.964001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:04.968274"], ["updated_at", "2016-01-20 22:23:04.968274"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-20 22:23:04.973623"], ["updated_at", "2016-01-20 22:23:04.973623"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:04.975617"], ["updated_at", "2016-01-20 22:23:04.975617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:04.977337"], ["updated_at", "2016-01-20 22:23:04.977337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:05.004399"], ["updated_at", "2016-01-20 22:23:05.004399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-20 22:23:05.008069"], ["updated_at", "2016-01-20 22:23:05.008069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-20 22:23:05.048881"], ["updated_at", "2016-01-20 22:23:05.048881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:05.060885"], ["updated_at", "2016-01-20 22:23:05.060885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-20 22:23:05.064089"], ["updated_at", "2016-01-20 22:23:05.064089"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:05.066107"], ["updated_at", "2016-01-20 22:23:05.066107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.5ms) 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.7ms) 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';  (0.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (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.8ms) 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.7ms) 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';  (0.7ms) 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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:20.360759"], ["updated_at", "2016-01-20 22:23:20.360759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-20 22:23:20.482136"], ["updated_at", "2016-01-20 22:23:20.482136"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:20.490071"], ["updated_at", "2016-01-20 22:23:20.490071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:20.492655"], ["updated_at", "2016-01-20 22:23:20.492655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-20 22:23:20.515144"], ["updated_at", "2016-01-20 22:23:20.515144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:23:20.518496"], ["updated_at", "2016-01-20 22:23:20.518496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-20 22:23:20.521690"], ["updated_at", "2016-01-20 22:23:20.521690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:23:20.524705"], ["updated_at", "2016-01-20 22:23:20.524705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-20 22:23:20.527962"], ["updated_at", "2016-01-20 22:23:20.527962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:23:20.530029"], ["updated_at", "2016-01-20 22:23:20.530029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:23:20.535321"], ["updated_at", "2016-01-20 22:23:20.535321"]]  (0.1ms) 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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:20.518496"], ["updated_at", "2016-01-20 22:23:20.518496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:20.545872"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:23:20.524705"], ["updated_at", "2016-01-20 22:23:20.524705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:20.554024"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:23:20.530029"], ["updated_at", "2016-01-20 22:23:20.530029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:20.567373"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:23:20.572654"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:20.586870"], ["updated_at", "2016-01-20 22:23:20.586870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-20 22:23:20.592369"], ["updated_at", "2016-01-20 22:23:20.592369"]] SQL (0.9ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:20.596196"], ["updated_at", "2016-01-20 22:23:20.596196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:20.598766"], ["updated_at", "2016-01-20 22:23:20.598766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-20 22:23:20.606679"], ["updated_at", "2016-01-20 22:23:20.606679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:23:20.609564"], ["updated_at", "2016-01-20 22:23:20.609564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-20 22:23:20.614304"], ["updated_at", "2016-01-20 22:23:20.614304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:23:20.620385"], ["updated_at", "2016-01-20 22:23:20.620385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-20 22:23:20.630577"], ["updated_at", "2016-01-20 22:23:20.630577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:23:20.636865"], ["updated_at", "2016-01-20 22:23:20.636865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:23:20.640395"], ["updated_at", "2016-01-20 22:23:20.640395"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:20.609564"], ["updated_at", "2016-01-20 22:23:20.609564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:20.650849"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:23:20.620385"], ["updated_at", "2016-01-20 22:23:20.620385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:20.666436"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:23:20.636865"], ["updated_at", "2016-01-20 22:23:20.636865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:20.671581"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:23:20.673421"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:20.681732"], ["updated_at", "2016-01-20 22:23:20.681732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-20 22:23:20.689082"], ["updated_at", "2016-01-20 22:23:20.689082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-20 22:23:20.692723"], ["updated_at", "2016-01-20 22:23:20.692723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-20 22:23:20.695244"], ["updated_at", "2016-01-20 22:23:20.695244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-20 22:23:20.696543"], ["updated_at", "2016-01-20 22:23:20.696543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-20 22:23:20.698656"], ["updated_at", "2016-01-20 22:23:20.698656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-20 22:23:20.699904"], ["updated_at", "2016-01-20 22:23:20.699904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-20 22:23:20.704469"], ["updated_at", "2016-01-20 22:23:20.704469"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:20.706037"], ["updated_at", "2016-01-20 22:23:20.706037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-20 22:23:20.714954"], ["updated_at", "2016-01-20 22:23:20.714954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-20 22:23:20.720459"], ["updated_at", "2016-01-20 22:23:20.720459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-20 22:23:20.726918"], ["updated_at", "2016-01-20 22:23:20.726918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:20.735147"], ["updated_at", "2016-01-20 22:23:20.735147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-20 22:23:20.737950"], ["updated_at", "2016-01-20 22:23:20.737950"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:20.740541"], ["updated_at", "2016-01-20 22:23:20.740541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:20.742250"], ["updated_at", "2016-01-20 22:23:20.742250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-20 22:23:20.744809"], ["updated_at", "2016-01-20 22:23:20.744809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:23:20.746795"], ["updated_at", "2016-01-20 22:23:20.746795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-20 22:23:20.749489"], ["updated_at", "2016-01-20 22:23:20.749489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:23:20.751384"], ["updated_at", "2016-01-20 22:23:20.751384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-20 22:23:20.754227"], ["updated_at", "2016-01-20 22:23:20.754227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:23:20.756188"], ["updated_at", "2016-01-20 22:23:20.756188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-20 22:23:20.765213"], ["updated_at", "2016-01-20 22:23:20.765213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-20 22:23:20.771954"], ["updated_at", "2016-01-20 22:23:20.771954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-20 22:23:20.782299"], ["updated_at", "2016-01-20 22:23:20.782299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:20.788708"], ["updated_at", "2016-01-20 22:23:20.788708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-20 22:23:20.805915"], ["updated_at", "2016-01-20 22:23:20.805915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-20 22:23:20.811978"], ["updated_at", "2016-01-20 22:23:20.811978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-20 22:23:20.816985"], ["updated_at", "2016-01-20 22:23:20.816985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:23:20.822809"], ["updated_at", "2016-01-20 22:23:20.822809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 16' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:20.825436"], ["updated_at", "2016-01-20 22:23:20.825436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:23:20.831808"], ["updated_at", "2016-01-20 22:23:20.831808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 17' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:20.834191"], ["updated_at", "2016-01-20 22:23:20.834191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-20 22:23:20.839594"], ["updated_at", "2016-01-20 22:23:20.839594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-20 22:23:20.846197"], ["updated_at", "2016-01-20 22:23:20.846197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-20 22:23:20.851858"], ["updated_at", "2016-01-20 22:23:20.851858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:20.978177"], ["updated_at", "2016-01-20 22:23:20.978177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:20.993498"], ["updated_at", "2016-01-20 22:23:20.993498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-20 22:23:20.999527"], ["updated_at", "2016-01-20 22:23:20.999527"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:21.002444"], ["updated_at", "2016-01-20 22:23:21.002444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:21.007814"], ["updated_at", "2016-01-20 22:23:21.007814"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-20 22:23:21.017504"], ["updated_at", "2016-01-20 22:23:21.017504"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:21.020405"], ["updated_at", "2016-01-20 22:23:21.020405"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-20 22:23:21.022926"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-20 22:23:21.037455"], ["updated_at", "2016-01-20 22:23:21.037455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:21.042347"], ["updated_at", "2016-01-20 22:23:21.042347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-20 22:23:21.045544"], ["updated_at", "2016-01-20 22:23:21.045544"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:21.047465"], ["updated_at", "2016-01-20 22:23:21.047465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:21.049169"], ["updated_at", "2016-01-20 22:23:21.049169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:21.072061"], ["updated_at", "2016-01-20 22:23:21.072061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-20 22:23:21.077110"], ["updated_at", "2016-01-20 22:23:21.077110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (2.0ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-20 22:23:21.126262"], ["updated_at", "2016-01-20 22:23:21.126262"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:21.148085"], ["updated_at", "2016-01-20 22:23:21.148085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-20 22:23:21.150896"], ["updated_at", "2016-01-20 22:23:21.150896"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:21.152689"], ["updated_at", "2016-01-20 22:23:21.152689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.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';  (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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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.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.7ms) 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';  (0.7ms) 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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:40.517166"], ["updated_at", "2016-01-20 22:23:40.517166"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-20 22:23:40.638292"], ["updated_at", "2016-01-20 22:23:40.638292"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:40.646253"], ["updated_at", "2016-01-20 22:23:40.646253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:40.648507"], ["updated_at", "2016-01-20 22:23:40.648507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-20 22:23:40.672278"], ["updated_at", "2016-01-20 22:23:40.672278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:23:40.676263"], ["updated_at", "2016-01-20 22:23:40.676263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-20 22:23:40.679870"], ["updated_at", "2016-01-20 22:23:40.679870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:23:40.682678"], ["updated_at", "2016-01-20 22:23:40.682678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-20 22:23:40.686603"], ["updated_at", "2016-01-20 22:23:40.686603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:23:40.689061"], ["updated_at", "2016-01-20 22:23:40.689061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:23:40.694306"], ["updated_at", "2016-01-20 22:23:40.694306"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:40.676263"], ["updated_at", "2016-01-20 22:23:40.676263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:40.705280"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:23:40.682678"], ["updated_at", "2016-01-20 22:23:40.682678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:40.713500"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:23:40.689061"], ["updated_at", "2016-01-20 22:23:40.689061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:40.725496"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:23:40.730926"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (1.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:40.744947"], ["updated_at", "2016-01-20 22:23:40.744947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-20 22:23:40.749800"], ["updated_at", "2016-01-20 22:23:40.749800"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:40.754272"], ["updated_at", "2016-01-20 22:23:40.754272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:40.757631"], ["updated_at", "2016-01-20 22:23:40.757631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-20 22:23:40.764745"], ["updated_at", "2016-01-20 22:23:40.764745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:23:40.767723"], ["updated_at", "2016-01-20 22:23:40.767723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-20 22:23:40.772115"], ["updated_at", "2016-01-20 22:23:40.772115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:23:40.778238"], ["updated_at", "2016-01-20 22:23:40.778238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-20 22:23:40.784957"], ["updated_at", "2016-01-20 22:23:40.784957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:23:40.794500"], ["updated_at", "2016-01-20 22:23:40.794500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:23:40.797686"], ["updated_at", "2016-01-20 22:23:40.797686"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:40.767723"], ["updated_at", "2016-01-20 22:23:40.767723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:40.808533"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:23:40.778238"], ["updated_at", "2016-01-20 22:23:40.778238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:40.823166"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:23:40.794500"], ["updated_at", "2016-01-20 22:23:40.794500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:23:40.828462"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:23:40.830189"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (1.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:40.839859"], ["updated_at", "2016-01-20 22:23:40.839859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-20 22:23:40.847904"], ["updated_at", "2016-01-20 22:23:40.847904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-20 22:23:40.850308"], ["updated_at", "2016-01-20 22:23:40.850308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-20 22:23:40.854257"], ["updated_at", "2016-01-20 22:23:40.854257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-20 22:23:40.855854"], ["updated_at", "2016-01-20 22:23:40.855854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-20 22:23:40.858293"], ["updated_at", "2016-01-20 22:23:40.858293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-20 22:23:40.859581"], ["updated_at", "2016-01-20 22:23:40.859581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-20 22:23:40.864060"], ["updated_at", "2016-01-20 22:23:40.864060"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:40.865621"], ["updated_at", "2016-01-20 22:23:40.865621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-20 22:23:40.875037"], ["updated_at", "2016-01-20 22:23:40.875037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-20 22:23:40.880345"], ["updated_at", "2016-01-20 22:23:40.880345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-20 22:23:40.884853"], ["updated_at", "2016-01-20 22:23:40.884853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:40.893444"], ["updated_at", "2016-01-20 22:23:40.893444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-20 22:23:40.895924"], ["updated_at", "2016-01-20 22:23:40.895924"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:40.899064"], ["updated_at", "2016-01-20 22:23:40.899064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:40.901273"], ["updated_at", "2016-01-20 22:23:40.901273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-20 22:23:40.904872"], ["updated_at", "2016-01-20 22:23:40.904872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:23:40.907247"], ["updated_at", "2016-01-20 22:23:40.907247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-20 22:23:40.909933"], ["updated_at", "2016-01-20 22:23:40.909933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:23:40.911875"], ["updated_at", "2016-01-20 22:23:40.911875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-20 22:23:40.914480"], ["updated_at", "2016-01-20 22:23:40.914480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:23:40.916373"], ["updated_at", "2016-01-20 22:23:40.916373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-20 22:23:40.925489"], ["updated_at", "2016-01-20 22:23:40.925489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-20 22:23:40.932147"], ["updated_at", "2016-01-20 22:23:40.932147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-20 22:23:40.942079"], ["updated_at", "2016-01-20 22:23:40.942079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:40.948183"], ["updated_at", "2016-01-20 22:23:40.948183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-20 22:23:40.965444"], ["updated_at", "2016-01-20 22:23:40.965444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-20 22:23:40.971458"], ["updated_at", "2016-01-20 22:23:40.971458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-20 22:23:40.976040"], ["updated_at", "2016-01-20 22:23:40.976040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:23:40.981070"], ["updated_at", "2016-01-20 22:23:40.981070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 16' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:40.983316"], ["updated_at", "2016-01-20 22:23:40.983316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:23:40.989606"], ["updated_at", "2016-01-20 22:23:40.989606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 17' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:23:40.992493"], ["updated_at", "2016-01-20 22:23:40.992493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-20 22:23:40.997939"], ["updated_at", "2016-01-20 22:23:40.997939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-20 22:23:41.004312"], ["updated_at", "2016-01-20 22:23:41.004312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-20 22:23:41.009621"], ["updated_at", "2016-01-20 22:23:41.009621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:41.127830"], ["updated_at", "2016-01-20 22:23:41.127830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]]  (0.3ms) rollback transaction  (1.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:41.145378"], ["updated_at", "2016-01-20 22:23:41.145378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-20 22:23:41.149091"], ["updated_at", "2016-01-20 22:23:41.149091"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:41.151453"], ["updated_at", "2016-01-20 22:23:41.151453"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:41.157010"], ["updated_at", "2016-01-20 22:23:41.157010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-20 22:23:41.160174"], ["updated_at", "2016-01-20 22:23:41.160174"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:41.163060"], ["updated_at", "2016-01-20 22:23:41.163060"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-20 22:23:41.165760"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-20 22:23:41.178902"], ["updated_at", "2016-01-20 22:23:41.178902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:41.182683"], ["updated_at", "2016-01-20 22:23:41.182683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-20 22:23:41.185479"], ["updated_at", "2016-01-20 22:23:41.185479"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:41.187011"], ["updated_at", "2016-01-20 22:23:41.187011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:41.188888"], ["updated_at", "2016-01-20 22:23:41.188888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:41.215997"], ["updated_at", "2016-01-20 22:23:41.215997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-20 22:23:41.219445"], ["updated_at", "2016-01-20 22:23:41.219445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-20 22:23:41.267602"], ["updated_at", "2016-01-20 22:23:41.267602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:23:41.282859"], ["updated_at", "2016-01-20 22:23:41.282859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-20 22:23:41.285628"], ["updated_at", "2016-01-20 22:23:41.285628"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:23:41.287817"], ["updated_at", "2016-01-20 22:23:41.287817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.3ms) 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.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';  (0.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';  (0.6ms) 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.6ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.6ms) 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.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.7ms) 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';  (0.8ms) 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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:24:19.078230"], ["updated_at", "2016-01-20 22:24:19.078230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-20 22:24:19.202294"], ["updated_at", "2016-01-20 22:24:19.202294"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:24:19.212183"], ["updated_at", "2016-01-20 22:24:19.212183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:24:19.215189"], ["updated_at", "2016-01-20 22:24:19.215189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-20 22:24:19.239367"], ["updated_at", "2016-01-20 22:24:19.239367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:24:19.244162"], ["updated_at", "2016-01-20 22:24:19.244162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-20 22:24:19.247992"], ["updated_at", "2016-01-20 22:24:19.247992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:24:19.250379"], ["updated_at", "2016-01-20 22:24:19.250379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-20 22:24:19.253582"], ["updated_at", "2016-01-20 22:24:19.253582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:24:19.255600"], ["updated_at", "2016-01-20 22:24:19.255600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:24:19.260634"], ["updated_at", "2016-01-20 22:24:19.260634"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:24:19.244162"], ["updated_at", "2016-01-20 22:24:19.244162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:24:19.269987"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:24:19.250379"], ["updated_at", "2016-01-20 22:24:19.250379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:24:19.276998"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:24:19.255600"], ["updated_at", "2016-01-20 22:24:19.255600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:24:19.288905"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:24:19.294499"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:24:19.307841"], ["updated_at", "2016-01-20 22:24:19.307841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-20 22:24:19.313471"], ["updated_at", "2016-01-20 22:24:19.313471"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:24:19.318270"], ["updated_at", "2016-01-20 22:24:19.318270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:24:19.320850"], ["updated_at", "2016-01-20 22:24:19.320850"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-20 22:24:19.329291"], ["updated_at", "2016-01-20 22:24:19.329291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:24:19.332531"], ["updated_at", "2016-01-20 22:24:19.332531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-20 22:24:19.337212"], ["updated_at", "2016-01-20 22:24:19.337212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:24:19.343992"], ["updated_at", "2016-01-20 22:24:19.343992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-20 22:24:19.350567"], ["updated_at", "2016-01-20 22:24:19.350567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:24:19.354036"], ["updated_at", "2016-01-20 22:24:19.354036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:24:19.357705"], ["updated_at", "2016-01-20 22:24:19.357705"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:24:19.332531"], ["updated_at", "2016-01-20 22:24:19.332531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:24:19.368056"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:24:19.343992"], ["updated_at", "2016-01-20 22:24:19.343992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:24:19.383319"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:24:19.354036"], ["updated_at", "2016-01-20 22:24:19.354036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:24:19.389092"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:24:19.390944"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:24:19.398737"], ["updated_at", "2016-01-20 22:24:19.398737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-20 22:24:19.405742"], ["updated_at", "2016-01-20 22:24:19.405742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-20 22:24:19.408249"], ["updated_at", "2016-01-20 22:24:19.408249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-20 22:24:19.410633"], ["updated_at", "2016-01-20 22:24:19.410633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-20 22:24:19.412116"], ["updated_at", "2016-01-20 22:24:19.412116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-20 22:24:19.414556"], ["updated_at", "2016-01-20 22:24:19.414556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-20 22:24:19.415853"], ["updated_at", "2016-01-20 22:24:19.415853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-20 22:24:19.420477"], ["updated_at", "2016-01-20 22:24:19.420477"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:24:19.422180"], ["updated_at", "2016-01-20 22:24:19.422180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-20 22:24:19.431571"], ["updated_at", "2016-01-20 22:24:19.431571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-20 22:24:19.437179"], ["updated_at", "2016-01-20 22:24:19.437179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-20 22:24:19.444128"], ["updated_at", "2016-01-20 22:24:19.444128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:24:19.450988"], ["updated_at", "2016-01-20 22:24:19.450988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-20 22:24:19.453583"], ["updated_at", "2016-01-20 22:24:19.453583"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:24:19.455639"], ["updated_at", "2016-01-20 22:24:19.455639"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:24:19.458280"], ["updated_at", "2016-01-20 22:24:19.458280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-20 22:24:19.461929"], ["updated_at", "2016-01-20 22:24:19.461929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:24:19.464370"], ["updated_at", "2016-01-20 22:24:19.464370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-20 22:24:19.467472"], ["updated_at", "2016-01-20 22:24:19.467472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:24:19.469829"], ["updated_at", "2016-01-20 22:24:19.469829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-20 22:24:19.473146"], ["updated_at", "2016-01-20 22:24:19.473146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:24:19.475581"], ["updated_at", "2016-01-20 22:24:19.475581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-20 22:24:19.486280"], ["updated_at", "2016-01-20 22:24:19.486280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-20 22:24:19.493411"], ["updated_at", "2016-01-20 22:24:19.493411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-20 22:24:19.501493"], ["updated_at", "2016-01-20 22:24:19.501493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:24:19.508927"], ["updated_at", "2016-01-20 22:24:19.508927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-20 22:24:19.525808"], ["updated_at", "2016-01-20 22:24:19.525808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-20 22:24:19.530550"], ["updated_at", "2016-01-20 22:24:19.530550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-20 22:24:19.535811"], ["updated_at", "2016-01-20 22:24:19.535811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:24:19.542585"], ["updated_at", "2016-01-20 22:24:19.542585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 16' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:24:19.544892"], ["updated_at", "2016-01-20 22:24:19.544892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:24:19.550947"], ["updated_at", "2016-01-20 22:24:19.550947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 17' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:24:19.553439"], ["updated_at", "2016-01-20 22:24:19.553439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-20 22:24:19.559712"], ["updated_at", "2016-01-20 22:24:19.559712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-20 22:24:19.565385"], ["updated_at", "2016-01-20 22:24:19.565385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-20 22:24:19.570705"], ["updated_at", "2016-01-20 22:24:19.570705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:24:19.703292"], ["updated_at", "2016-01-20 22:24:19.703292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:24:19.722953"], ["updated_at", "2016-01-20 22:24:19.722953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-20 22:24:19.728034"], ["updated_at", "2016-01-20 22:24:19.728034"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:24:19.733888"], ["updated_at", "2016-01-20 22:24:19.733888"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:24:19.740474"], ["updated_at", "2016-01-20 22:24:19.740474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-20 22:24:19.750020"], ["updated_at", "2016-01-20 22:24:19.750020"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:24:19.752622"], ["updated_at", "2016-01-20 22:24:19.752622"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-20 22:24:19.756123"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-20 22:24:19.768946"], ["updated_at", "2016-01-20 22:24:19.768946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:24:19.773801"], ["updated_at", "2016-01-20 22:24:19.773801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-20 22:24:19.778475"], ["updated_at", "2016-01-20 22:24:19.778475"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:24:19.780570"], ["updated_at", "2016-01-20 22:24:19.780570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:24:19.782430"], ["updated_at", "2016-01-20 22:24:19.782430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:24:19.805964"], ["updated_at", "2016-01-20 22:24:19.805964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-20 22:24:19.810001"], ["updated_at", "2016-01-20 22:24:19.810001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (1.9ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-20 22:24:19.869962"], ["updated_at", "2016-01-20 22:24:19.869962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:24:19.886777"], ["updated_at", "2016-01-20 22:24:19.886777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-20 22:24:19.891282"], ["updated_at", "2016-01-20 22:24:19.891282"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:24:19.893400"], ["updated_at", "2016-01-20 22:24:19.893400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.2ms) 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.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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.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.6ms) 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';  (0.9ms) 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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:28:28.026305"], ["updated_at", "2016-01-20 22:28:28.026305"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-20 22:28:28.147048"], ["updated_at", "2016-01-20 22:28:28.147048"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:28:28.154749"], ["updated_at", "2016-01-20 22:28:28.154749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:28:28.157827"], ["updated_at", "2016-01-20 22:28:28.157827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-20 22:28:28.172445"], ["updated_at", "2016-01-20 22:28:28.172445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:28:28.178661"], ["updated_at", "2016-01-20 22:28:28.178661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-20 22:28:28.182889"], ["updated_at", "2016-01-20 22:28:28.182889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:28:28.185482"], ["updated_at", "2016-01-20 22:28:28.185482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-20 22:28:28.188688"], ["updated_at", "2016-01-20 22:28:28.188688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:28:28.191061"], ["updated_at", "2016-01-20 22:28:28.191061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:28:28.199352"], ["updated_at", "2016-01-20 22:28:28.199352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.3ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:28:28.178661"], ["updated_at", "2016-01-20 22:28:28.178661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:28:28.213807"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:28:28.185482"], ["updated_at", "2016-01-20 22:28:28.185482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:28:28.223053"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:28:28.191061"], ["updated_at", "2016-01-20 22:28:28.191061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:28:28.230928"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:28:28.235156"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:28:28.243040"], ["updated_at", "2016-01-20 22:28:28.243040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-20 22:28:28.246458"], ["updated_at", "2016-01-20 22:28:28.246458"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:28:28.249114"], ["updated_at", "2016-01-20 22:28:28.249114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:28:28.251366"], ["updated_at", "2016-01-20 22:28:28.251366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-20 22:28:28.256296"], ["updated_at", "2016-01-20 22:28:28.256296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:28:28.259907"], ["updated_at", "2016-01-20 22:28:28.259907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-20 22:28:28.263324"], ["updated_at", "2016-01-20 22:28:28.263324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:28:28.266351"], ["updated_at", "2016-01-20 22:28:28.266351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-20 22:28:28.270650"], ["updated_at", "2016-01-20 22:28:28.270650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:28:28.272624"], ["updated_at", "2016-01-20 22:28:28.272624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:28:28.274398"], ["updated_at", "2016-01-20 22:28:28.274398"]]  (0.1ms) 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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:28:28.259907"], ["updated_at", "2016-01-20 22:28:28.259907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:28:28.283110"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:28:28.266351"], ["updated_at", "2016-01-20 22:28:28.266351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:28:28.288789"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:28:28.272624"], ["updated_at", "2016-01-20 22:28:28.272624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:28:28.294116"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:28:28.296587"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:28:28.304566"], ["updated_at", "2016-01-20 22:28:28.304566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-20 22:28:28.311735"], ["updated_at", "2016-01-20 22:28:28.311735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-20 22:28:28.314080"], ["updated_at", "2016-01-20 22:28:28.314080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-20 22:28:28.316755"], ["updated_at", "2016-01-20 22:28:28.316755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-20 22:28:28.318097"], ["updated_at", "2016-01-20 22:28:28.318097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-20 22:28:28.320785"], ["updated_at", "2016-01-20 22:28:28.320785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-20 22:28:28.322142"], ["updated_at", "2016-01-20 22:28:28.322142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-20 22:28:28.327049"], ["updated_at", "2016-01-20 22:28:28.327049"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:28:28.328629"], ["updated_at", "2016-01-20 22:28:28.328629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-20 22:28:28.338326"], ["updated_at", "2016-01-20 22:28:28.338326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-20 22:28:28.344091"], ["updated_at", "2016-01-20 22:28:28.344091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-20 22:28:28.349896"], ["updated_at", "2016-01-20 22:28:28.349896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:28:28.358446"], ["updated_at", "2016-01-20 22:28:28.358446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-20 22:28:28.362052"], ["updated_at", "2016-01-20 22:28:28.362052"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:28:28.364300"], ["updated_at", "2016-01-20 22:28:28.364300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:28:28.366176"], ["updated_at", "2016-01-20 22:28:28.366176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-20 22:28:28.368951"], ["updated_at", "2016-01-20 22:28:28.368951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:28:28.370982"], ["updated_at", "2016-01-20 22:28:28.370982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-20 22:28:28.373529"], ["updated_at", "2016-01-20 22:28:28.373529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:28:28.375421"], ["updated_at", "2016-01-20 22:28:28.375421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-20 22:28:28.378265"], ["updated_at", "2016-01-20 22:28:28.378265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:28:28.380308"], ["updated_at", "2016-01-20 22:28:28.380308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-20 22:28:28.390222"], ["updated_at", "2016-01-20 22:28:28.390222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-20 22:28:28.397955"], ["updated_at", "2016-01-20 22:28:28.397955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-20 22:28:28.407243"], ["updated_at", "2016-01-20 22:28:28.407243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:28:28.415496"], ["updated_at", "2016-01-20 22:28:28.415496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-20 22:28:28.434244"], ["updated_at", "2016-01-20 22:28:28.434244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-20 22:28:28.439317"], ["updated_at", "2016-01-20 22:28:28.439317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-20 22:28:28.444623"], ["updated_at", "2016-01-20 22:28:28.444623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:28:28.451249"], ["updated_at", "2016-01-20 22:28:28.451249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 16' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:28:28.453535"], ["updated_at", "2016-01-20 22:28:28.453535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:28:28.459758"], ["updated_at", "2016-01-20 22:28:28.459758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 17' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:28:28.462245"], ["updated_at", "2016-01-20 22:28:28.462245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-20 22:28:28.468445"], ["updated_at", "2016-01-20 22:28:28.468445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-20 22:28:28.472992"], ["updated_at", "2016-01-20 22:28:28.472992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-20 22:28:28.478035"], ["updated_at", "2016-01-20 22:28:28.478035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:28:28.603377"], ["updated_at", "2016-01-20 22:28:28.603377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:28:28.625414"], ["updated_at", "2016-01-20 22:28:28.625414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-20 22:28:28.628173"], ["updated_at", "2016-01-20 22:28:28.628173"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:28:28.630362"], ["updated_at", "2016-01-20 22:28:28.630362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:28:28.634706"], ["updated_at", "2016-01-20 22:28:28.634706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-20 22:28:28.638012"], ["updated_at", "2016-01-20 22:28:28.638012"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:28:28.640337"], ["updated_at", "2016-01-20 22:28:28.640337"]]  (0.1ms) 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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-20 22:28:28.643856"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-20 22:28:28.656483"], ["updated_at", "2016-01-20 22:28:28.656483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:28:28.660285"], ["updated_at", "2016-01-20 22:28:28.660285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-20 22:28:28.662898"], ["updated_at", "2016-01-20 22:28:28.662898"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:28:28.664445"], ["updated_at", "2016-01-20 22:28:28.664445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:28:28.666036"], ["updated_at", "2016-01-20 22:28:28.666036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:28:28.692180"], ["updated_at", "2016-01-20 22:28:28.692180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-20 22:28:28.696472"], ["updated_at", "2016-01-20 22:28:28.696472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-20 22:28:28.755763"], ["updated_at", "2016-01-20 22:28:28.755763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:28:28.770972"], ["updated_at", "2016-01-20 22:28:28.770972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-20 22:28:28.774003"], ["updated_at", "2016-01-20 22:28:28.774003"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:28:28.776086"], ["updated_at", "2016-01-20 22:28:28.776086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) 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';  (0.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.6ms) 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';  (0.8ms) 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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:35.749927"], ["updated_at", "2016-01-20 22:29:35.749927"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-20 22:29:35.869626"], ["updated_at", "2016-01-20 22:29:35.869626"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:35.877590"], ["updated_at", "2016-01-20 22:29:35.877590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:35.880169"], ["updated_at", "2016-01-20 22:29:35.880169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-20 22:29:35.892715"], ["updated_at", "2016-01-20 22:29:35.892715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:29:35.895808"], ["updated_at", "2016-01-20 22:29:35.895808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-20 22:29:35.900028"], ["updated_at", "2016-01-20 22:29:35.900028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:29:35.902789"], ["updated_at", "2016-01-20 22:29:35.902789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-20 22:29:35.906157"], ["updated_at", "2016-01-20 22:29:35.906157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:29:35.908602"], ["updated_at", "2016-01-20 22:29:35.908602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:29:35.913155"], ["updated_at", "2016-01-20 22:29:35.913155"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:29:35.895808"], ["updated_at", "2016-01-20 22:29:35.895808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:29:35.922200"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:29:35.902789"], ["updated_at", "2016-01-20 22:29:35.902789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:29:35.928419"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:29:35.908602"], ["updated_at", "2016-01-20 22:29:35.908602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:29:35.933994"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:29:35.937365"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:35.944777"], ["updated_at", "2016-01-20 22:29:35.944777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-20 22:29:35.947279"], ["updated_at", "2016-01-20 22:29:35.947279"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:35.949025"], ["updated_at", "2016-01-20 22:29:35.949025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:35.950699"], ["updated_at", "2016-01-20 22:29:35.950699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-20 22:29:35.954149"], ["updated_at", "2016-01-20 22:29:35.954149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:29:35.956228"], ["updated_at", "2016-01-20 22:29:35.956228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-20 22:29:35.958838"], ["updated_at", "2016-01-20 22:29:35.958838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:29:35.960756"], ["updated_at", "2016-01-20 22:29:35.960756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-20 22:29:35.963239"], ["updated_at", "2016-01-20 22:29:35.963239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:29:35.965783"], ["updated_at", "2016-01-20 22:29:35.965783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:29:35.968076"], ["updated_at", "2016-01-20 22:29:35.968076"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:29:35.956228"], ["updated_at", "2016-01-20 22:29:35.956228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:29:35.974546"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:29:35.960756"], ["updated_at", "2016-01-20 22:29:35.960756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:29:35.980943"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:29:35.965783"], ["updated_at", "2016-01-20 22:29:35.965783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:29:35.986171"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:29:35.988109"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:35.995937"], ["updated_at", "2016-01-20 22:29:35.995937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-20 22:29:36.004607"], ["updated_at", "2016-01-20 22:29:36.004607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-20 22:29:36.006962"], ["updated_at", "2016-01-20 22:29:36.006962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-20 22:29:36.009529"], ["updated_at", "2016-01-20 22:29:36.009529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-20 22:29:36.010929"], ["updated_at", "2016-01-20 22:29:36.010929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-20 22:29:36.013355"], ["updated_at", "2016-01-20 22:29:36.013355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-20 22:29:36.014749"], ["updated_at", "2016-01-20 22:29:36.014749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-20 22:29:36.019554"], ["updated_at", "2016-01-20 22:29:36.019554"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:36.021308"], ["updated_at", "2016-01-20 22:29:36.021308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-20 22:29:36.029980"], ["updated_at", "2016-01-20 22:29:36.029980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-20 22:29:36.035441"], ["updated_at", "2016-01-20 22:29:36.035441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-20 22:29:36.040015"], ["updated_at", "2016-01-20 22:29:36.040015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:36.046938"], ["updated_at", "2016-01-20 22:29:36.046938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-20 22:29:36.049425"], ["updated_at", "2016-01-20 22:29:36.049425"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:36.051464"], ["updated_at", "2016-01-20 22:29:36.051464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:36.053172"], ["updated_at", "2016-01-20 22:29:36.053172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-20 22:29:36.056367"], ["updated_at", "2016-01-20 22:29:36.056367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:29:36.058671"], ["updated_at", "2016-01-20 22:29:36.058671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-20 22:29:36.061354"], ["updated_at", "2016-01-20 22:29:36.061354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:29:36.063365"], ["updated_at", "2016-01-20 22:29:36.063365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-20 22:29:36.066072"], ["updated_at", "2016-01-20 22:29:36.066072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:29:36.068299"], ["updated_at", "2016-01-20 22:29:36.068299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-20 22:29:36.077885"], ["updated_at", "2016-01-20 22:29:36.077885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-20 22:29:36.084217"], ["updated_at", "2016-01-20 22:29:36.084217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-20 22:29:36.094969"], ["updated_at", "2016-01-20 22:29:36.094969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:29:36.102723"], ["updated_at", "2016-01-20 22:29:36.102723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-20 22:29:36.120364"], ["updated_at", "2016-01-20 22:29:36.120364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-20 22:29:36.125238"], ["updated_at", "2016-01-20 22:29:36.125238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-20 22:29:36.129981"], ["updated_at", "2016-01-20 22:29:36.129981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:29:36.135372"], ["updated_at", "2016-01-20 22:29:36.135372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 16' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:29:36.137943"], ["updated_at", "2016-01-20 22:29:36.137943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:29:36.143592"], ["updated_at", "2016-01-20 22:29:36.143592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 17' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:29:36.146362"], ["updated_at", "2016-01-20 22:29:36.146362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-20 22:29:36.152859"], ["updated_at", "2016-01-20 22:29:36.152859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-20 22:29:36.158362"], ["updated_at", "2016-01-20 22:29:36.158362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-20 22:29:36.164739"], ["updated_at", "2016-01-20 22:29:36.164739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:36.292688"], ["updated_at", "2016-01-20 22:29:36.292688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:36.307910"], ["updated_at", "2016-01-20 22:29:36.307910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-20 22:29:36.312796"], ["updated_at", "2016-01-20 22:29:36.312796"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:36.315426"], ["updated_at", "2016-01-20 22:29:36.315426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:36.321876"], ["updated_at", "2016-01-20 22:29:36.321876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-20 22:29:36.326904"], ["updated_at", "2016-01-20 22:29:36.326904"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:36.329645"], ["updated_at", "2016-01-20 22:29:36.329645"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-20 22:29:36.332144"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-20 22:29:36.346354"], ["updated_at", "2016-01-20 22:29:36.346354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:36.353117"], ["updated_at", "2016-01-20 22:29:36.353117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-20 22:29:36.355665"], ["updated_at", "2016-01-20 22:29:36.355665"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:36.357229"], ["updated_at", "2016-01-20 22:29:36.357229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:36.359226"], ["updated_at", "2016-01-20 22:29:36.359226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:36.381896"], ["updated_at", "2016-01-20 22:29:36.381896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-20 22:29:36.385059"], ["updated_at", "2016-01-20 22:29:36.385059"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-20 22:29:36.446826"], ["updated_at", "2016-01-20 22:29:36.446826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:36.463766"], ["updated_at", "2016-01-20 22:29:36.463766"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-20 22:29:36.468258"], ["updated_at", "2016-01-20 22:29:36.468258"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:36.471343"], ["updated_at", "2016-01-20 22:29:36.471343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (3.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) 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.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 "search_locations";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.6ms) 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';  (0.8ms) 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.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:55.146529"], ["updated_at", "2016-01-20 22:29:55.146529"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-20 22:29:55.265976"], ["updated_at", "2016-01-20 22:29:55.265976"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:55.274279"], ["updated_at", "2016-01-20 22:29:55.274279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:55.276507"], ["updated_at", "2016-01-20 22:29:55.276507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-20 22:29:55.289485"], ["updated_at", "2016-01-20 22:29:55.289485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:29:55.292555"], ["updated_at", "2016-01-20 22:29:55.292555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-20 22:29:55.295369"], ["updated_at", "2016-01-20 22:29:55.295369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:29:55.297381"], ["updated_at", "2016-01-20 22:29:55.297381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-20 22:29:55.299936"], ["updated_at", "2016-01-20 22:29:55.299936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:29:55.302523"], ["updated_at", "2016-01-20 22:29:55.302523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:29:55.308252"], ["updated_at", "2016-01-20 22:29:55.308252"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:29:55.292555"], ["updated_at", "2016-01-20 22:29:55.292555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:29:55.318228"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:29:55.297381"], ["updated_at", "2016-01-20 22:29:55.297381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:29:55.325119"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:29:55.302523"], ["updated_at", "2016-01-20 22:29:55.302523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:29:55.330326"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:29:55.333355"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:55.342242"], ["updated_at", "2016-01-20 22:29:55.342242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-20 22:29:55.345528"], ["updated_at", "2016-01-20 22:29:55.345528"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:55.347849"], ["updated_at", "2016-01-20 22:29:55.347849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:55.349570"], ["updated_at", "2016-01-20 22:29:55.349570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-20 22:29:55.352615"], ["updated_at", "2016-01-20 22:29:55.352615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:29:55.354675"], ["updated_at", "2016-01-20 22:29:55.354675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-20 22:29:55.357290"], ["updated_at", "2016-01-20 22:29:55.357290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:29:55.359226"], ["updated_at", "2016-01-20 22:29:55.359226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-20 22:29:55.361749"], ["updated_at", "2016-01-20 22:29:55.361749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:29:55.363663"], ["updated_at", "2016-01-20 22:29:55.363663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:29:55.365533"], ["updated_at", "2016-01-20 22:29:55.365533"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:29:55.354675"], ["updated_at", "2016-01-20 22:29:55.354675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:29:55.372053"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:29:55.359226"], ["updated_at", "2016-01-20 22:29:55.359226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:29:55.378320"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:29:55.363663"], ["updated_at", "2016-01-20 22:29:55.363663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:29:55.384140"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:29:55.385895"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:55.394423"], ["updated_at", "2016-01-20 22:29:55.394423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-20 22:29:55.403735"], ["updated_at", "2016-01-20 22:29:55.403735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-20 22:29:55.406676"], ["updated_at", "2016-01-20 22:29:55.406676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-20 22:29:55.409554"], ["updated_at", "2016-01-20 22:29:55.409554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-20 22:29:55.410954"], ["updated_at", "2016-01-20 22:29:55.410954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-20 22:29:55.413381"], ["updated_at", "2016-01-20 22:29:55.413381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-20 22:29:55.414626"], ["updated_at", "2016-01-20 22:29:55.414626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-20 22:29:55.419658"], ["updated_at", "2016-01-20 22:29:55.419658"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:55.421558"], ["updated_at", "2016-01-20 22:29:55.421558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-20 22:29:55.430295"], ["updated_at", "2016-01-20 22:29:55.430295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-20 22:29:55.434870"], ["updated_at", "2016-01-20 22:29:55.434870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-20 22:29:55.440783"], ["updated_at", "2016-01-20 22:29:55.440783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:29:55.447605"], ["updated_at", "2016-01-20 22:29:55.447605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-20 22:29:55.450044"], ["updated_at", "2016-01-20 22:29:55.450044"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:55.451883"], ["updated_at", "2016-01-20 22:29:55.451883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:29:55.454323"], ["updated_at", "2016-01-20 22:29:55.454323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-20 22:29:55.457506"], ["updated_at", "2016-01-20 22:29:55.457506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:29:55.459652"], ["updated_at", "2016-01-20 22:29:55.459652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-20 22:29:55.462360"], ["updated_at", "2016-01-20 22:29:55.462360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:29:55.464272"], ["updated_at", "2016-01-20 22:29:55.464272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-20 22:29:55.466720"], ["updated_at", "2016-01-20 22:29:55.466720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:29:55.468781"], ["updated_at", "2016-01-20 22:29:55.468781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-20 22:30:10.665087"], ["updated_at", "2016-01-20 22:30:10.665087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-20 22:30:10.672415"], ["updated_at", "2016-01-20 22:30:10.672415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-20 22:30:10.687033"], ["updated_at", "2016-01-20 22:30:10.687033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:30:10.717271"], ["updated_at", "2016-01-20 22:30:10.717271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-20 22:30:10.738547"], ["updated_at", "2016-01-20 22:30:10.738547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-20 22:30:10.744313"], ["updated_at", "2016-01-20 22:30:10.744313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-20 22:30:10.749289"], ["updated_at", "2016-01-20 22:30:10.749289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:30:10.755647"], ["updated_at", "2016-01-20 22:30:10.755647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 16' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:30:10.758273"], ["updated_at", "2016-01-20 22:30:10.758273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:30:10.765805"], ["updated_at", "2016-01-20 22:30:10.765805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 17' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:30:10.768334"], ["updated_at", "2016-01-20 22:30:10.768334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-20 22:30:10.773917"], ["updated_at", "2016-01-20 22:30:10.773917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-20 22:30:10.780259"], ["updated_at", "2016-01-20 22:30:10.780259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-20 22:30:10.787180"], ["updated_at", "2016-01-20 22:30:10.787180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:10.911591"], ["updated_at", "2016-01-20 22:30:10.911591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:10.930465"], ["updated_at", "2016-01-20 22:30:10.930465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-20 22:30:10.935696"], ["updated_at", "2016-01-20 22:30:10.935696"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:10.938359"], ["updated_at", "2016-01-20 22:30:10.938359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:10.947075"], ["updated_at", "2016-01-20 22:30:10.947075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-20 22:30:10.950940"], ["updated_at", "2016-01-20 22:30:10.950940"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:10.953535"], ["updated_at", "2016-01-20 22:30:10.953535"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-20 22:30:10.956602"], ["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.7ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-20 22:30:10.975747"], ["updated_at", "2016-01-20 22:30:10.975747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:10.982494"], ["updated_at", "2016-01-20 22:30:10.982494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-20 22:30:10.985678"], ["updated_at", "2016-01-20 22:30:10.985678"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:10.987726"], ["updated_at", "2016-01-20 22:30:10.987726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:10.989647"], ["updated_at", "2016-01-20 22:30:10.989647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:11.016664"], ["updated_at", "2016-01-20 22:30:11.016664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-20 22:30:11.020580"], ["updated_at", "2016-01-20 22:30:11.020580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-20 22:30:11.065826"], ["updated_at", "2016-01-20 22:30:11.065826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:11.082364"], ["updated_at", "2016-01-20 22:30:11.082364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-20 22:30:11.088391"], ["updated_at", "2016-01-20 22:30:11.088391"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:11.092347"], ["updated_at", "2016-01-20 22:30:11.092347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) DELETE FROM "pulitzer_content_element_types";  (0.1ms) 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.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';  (0.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';  (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.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.7ms) 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';  (0.7ms) 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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:15.820529"], ["updated_at", "2016-01-20 22:30:15.820529"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-20 22:30:15.933953"], ["updated_at", "2016-01-20 22:30:15.933953"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:15.942963"], ["updated_at", "2016-01-20 22:30:15.942963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:15.946142"], ["updated_at", "2016-01-20 22:30:15.946142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-20 22:30:15.958620"], ["updated_at", "2016-01-20 22:30:15.958620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:30:15.962079"], ["updated_at", "2016-01-20 22:30:15.962079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-20 22:30:15.965099"], ["updated_at", "2016-01-20 22:30:15.965099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:30:15.967221"], ["updated_at", "2016-01-20 22:30:15.967221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-20 22:30:15.971618"], ["updated_at", "2016-01-20 22:30:15.971618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:30:15.974043"], ["updated_at", "2016-01-20 22:30:15.974043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:30:15.979306"], ["updated_at", "2016-01-20 22:30:15.979306"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:30:15.962079"], ["updated_at", "2016-01-20 22:30:15.962079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:30:15.988492"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:30:15.967221"], ["updated_at", "2016-01-20 22:30:15.967221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:30:15.995327"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:30:15.974043"], ["updated_at", "2016-01-20 22:30:15.974043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:30:16.000781"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:30:16.004808"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:16.012459"], ["updated_at", "2016-01-20 22:30:16.012459"]]  (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 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-20 22:30:16.015488"], ["updated_at", "2016-01-20 22:30:16.015488"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:16.018454"], ["updated_at", "2016-01-20 22:30:16.018454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:16.020259"], ["updated_at", "2016-01-20 22:30:16.020259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-20 22:30:16.023539"], ["updated_at", "2016-01-20 22:30:16.023539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:30:16.026067"], ["updated_at", "2016-01-20 22:30:16.026067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-20 22:30:16.029217"], ["updated_at", "2016-01-20 22:30:16.029217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:30:16.031199"], ["updated_at", "2016-01-20 22:30:16.031199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-20 22:30:16.033743"], ["updated_at", "2016-01-20 22:30:16.033743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:30:16.035617"], ["updated_at", "2016-01-20 22:30:16.035617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-20 22:30:16.037363"], ["updated_at", "2016-01-20 22:30:16.037363"]]  (0.1ms) 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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:30:16.026067"], ["updated_at", "2016-01-20 22:30:16.026067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:30:16.044882"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-20 22:30:16.031199"], ["updated_at", "2016-01-20 22:30:16.031199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:30:16.051230"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-20 22:30:16.035617"], ["updated_at", "2016-01-20 22:30:16.035617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-20 22:30:16.056703"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-20 22:30:16.058902"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:16.067223"], ["updated_at", "2016-01-20 22:30:16.067223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-20 22:30:16.076645"], ["updated_at", "2016-01-20 22:30:16.076645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-20 22:30:16.079271"], ["updated_at", "2016-01-20 22:30:16.079271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-20 22:30:16.081942"], ["updated_at", "2016-01-20 22:30:16.081942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-20 22:30:16.083245"], ["updated_at", "2016-01-20 22:30:16.083245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-20 22:30:16.086215"], ["updated_at", "2016-01-20 22:30:16.086215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-20 22:30:16.087957"], ["updated_at", "2016-01-20 22:30:16.087957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-20 22:30:16.092646"], ["updated_at", "2016-01-20 22:30:16.092646"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:16.094177"], ["updated_at", "2016-01-20 22:30:16.094177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-20 22:30:16.104368"], ["updated_at", "2016-01-20 22:30:16.104368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-20 22:30:16.109045"], ["updated_at", "2016-01-20 22:30:16.109045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-20 22:30:16.115049"], ["updated_at", "2016-01-20 22:30:16.115049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:16.122422"], ["updated_at", "2016-01-20 22:30:16.122422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-20 22:30:16.124857"], ["updated_at", "2016-01-20 22:30:16.124857"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:16.126889"], ["updated_at", "2016-01-20 22:30:16.126889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:16.129316"], ["updated_at", "2016-01-20 22:30:16.129316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-20 22:30:16.132483"], ["updated_at", "2016-01-20 22:30:16.132483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-20 22:30:16.134917"], ["updated_at", "2016-01-20 22:30:16.134917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-20 22:30:16.137603"], ["updated_at", "2016-01-20 22:30:16.137603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-20 22:30:16.139462"], ["updated_at", "2016-01-20 22:30:16.139462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-20 22:30:16.142441"], ["updated_at", "2016-01-20 22:30:16.142441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-20 22:30:16.144667"], ["updated_at", "2016-01-20 22:30:16.144667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-20 22:30:18.639769"], ["updated_at", "2016-01-20 22:30:18.639769"]]  (2.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-20 22:30:18.648930"], ["updated_at", "2016-01-20 22:30:18.648930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-20 22:30:18.665444"], ["updated_at", "2016-01-20 22:30:18.665444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:30:18.692429"], ["updated_at", "2016-01-20 22:30:18.692429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-20 22:30:18.713826"], ["updated_at", "2016-01-20 22:30:18.713826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-20 22:30:18.718969"], ["updated_at", "2016-01-20 22:30:18.718969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-20 22:30:18.724717"], ["updated_at", "2016-01-20 22:30:18.724717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:30:18.731489"], ["updated_at", "2016-01-20 22:30:18.731489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 16' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:30:18.734117"], ["updated_at", "2016-01-20 22:30:18.734117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-20 22:30:18.740905"], ["updated_at", "2016-01-20 22:30:18.740905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 17' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-20 22:30:18.743325"], ["updated_at", "2016-01-20 22:30:18.743325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-20 22:30:18.749591"], ["updated_at", "2016-01-20 22:30:18.749591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-20 22:30:18.756396"], ["updated_at", "2016-01-20 22:30:18.756396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-20 22:30:18.762631"], ["updated_at", "2016-01-20 22:30:18.762631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:18.884725"], ["updated_at", "2016-01-20 22:30:18.884725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:18.902283"], ["updated_at", "2016-01-20 22:30:18.902283"]]  (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 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-20 22:30:18.913119"], ["updated_at", "2016-01-20 22:30:18.913119"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:18.916986"], ["updated_at", "2016-01-20 22:30:18.916986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:18.924788"], ["updated_at", "2016-01-20 22:30:18.924788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-20 22:30:18.928339"], ["updated_at", "2016-01-20 22:30:18.928339"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:18.931295"], ["updated_at", "2016-01-20 22:30:18.931295"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-20 22:30:18.934890"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) commit transaction  (0.6ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-20 22:30:18.953923"], ["updated_at", "2016-01-20 22:30:18.953923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:18.960091"], ["updated_at", "2016-01-20 22:30:18.960091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-20 22:30:18.963370"], ["updated_at", "2016-01-20 22:30:18.963370"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:18.965281"], ["updated_at", "2016-01-20 22:30:18.965281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:18.966817"], ["updated_at", "2016-01-20 22:30:18.966817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:18.994978"], ["updated_at", "2016-01-20 22:30:18.994978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-20 22:30:18.999071"], ["updated_at", "2016-01-20 22:30:18.999071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-20 22:30:19.045655"], ["updated_at", "2016-01-20 22:30:19.045655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-20 22:30:19.063876"], ["updated_at", "2016-01-20 22:30:19.063876"]]  (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 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-20 22:30:19.067570"], ["updated_at", "2016-01-20 22:30:19.067570"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-20 22:30:19.070612"], ["updated_at", "2016-01-20 22:30:19.070612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.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.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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.8ms) 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';  (0.7ms) 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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:17:02.447263"], ["updated_at", "2016-01-21 16:17:02.447263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-21 16:17:02.572803"], ["updated_at", "2016-01-21 16:17:02.572803"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:17:02.581692"], ["updated_at", "2016-01-21 16:17:02.581692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:17:02.583927"], ["updated_at", "2016-01-21 16:17:02.583927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-21 16:17:02.596135"], ["updated_at", "2016-01-21 16:17:02.596135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:17:02.599711"], ["updated_at", "2016-01-21 16:17:02.599711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-21 16:17:02.602524"], ["updated_at", "2016-01-21 16:17:02.602524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:17:02.604452"], ["updated_at", "2016-01-21 16:17:02.604452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-21 16:17:02.607668"], ["updated_at", "2016-01-21 16:17:02.607668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:17:02.610421"], ["updated_at", "2016-01-21 16:17:02.610421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:17:02.616979"], ["updated_at", "2016-01-21 16:17:02.616979"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:17:02.599711"], ["updated_at", "2016-01-21 16:17:02.599711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:17:02.627136"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:17:02.604452"], ["updated_at", "2016-01-21 16:17:02.604452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:17:02.633680"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:17:02.610421"], ["updated_at", "2016-01-21 16:17:02.610421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:17:02.639726"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:17:02.643086"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:17:02.650059"], ["updated_at", "2016-01-21 16:17:02.650059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-21 16:17:02.652603"], ["updated_at", "2016-01-21 16:17:02.652603"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:17:02.655240"], ["updated_at", "2016-01-21 16:17:02.655240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:17:02.657523"], ["updated_at", "2016-01-21 16:17:02.657523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-21 16:17:02.660942"], ["updated_at", "2016-01-21 16:17:02.660942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:17:02.663112"], ["updated_at", "2016-01-21 16:17:02.663112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-21 16:17:02.666253"], ["updated_at", "2016-01-21 16:17:02.666253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:17:02.668394"], ["updated_at", "2016-01-21 16:17:02.668394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-21 16:17:02.671425"], ["updated_at", "2016-01-21 16:17:02.671425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:17:02.673321"], ["updated_at", "2016-01-21 16:17:02.673321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:17:02.675119"], ["updated_at", "2016-01-21 16:17:02.675119"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:17:02.663112"], ["updated_at", "2016-01-21 16:17:02.663112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:17:02.681612"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:17:02.668394"], ["updated_at", "2016-01-21 16:17:02.668394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:17:02.687928"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:17:02.673321"], ["updated_at", "2016-01-21 16:17:02.673321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:17:02.695048"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:17:02.696769"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:17:02.706872"], ["updated_at", "2016-01-21 16:17:02.706872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-21 16:17:02.715846"], ["updated_at", "2016-01-21 16:17:02.715846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-21 16:17:02.718585"], ["updated_at", "2016-01-21 16:17:02.718585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-21 16:17:02.721560"], ["updated_at", "2016-01-21 16:17:02.721560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-21 16:17:02.723518"], ["updated_at", "2016-01-21 16:17:02.723518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-21 16:17:02.725892"], ["updated_at", "2016-01-21 16:17:02.725892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-21 16:17:02.727550"], ["updated_at", "2016-01-21 16:17:02.727550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-21 16:17:02.732278"], ["updated_at", "2016-01-21 16:17:02.732278"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:17:02.734046"], ["updated_at", "2016-01-21 16:17:02.734046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-21 16:17:02.743436"], ["updated_at", "2016-01-21 16:17:02.743436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-21 16:17:02.748275"], ["updated_at", "2016-01-21 16:17:02.748275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-21 16:17:02.753025"], ["updated_at", "2016-01-21 16:17:02.753025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:17:02.761128"], ["updated_at", "2016-01-21 16:17:02.761128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-21 16:17:02.763874"], ["updated_at", "2016-01-21 16:17:02.763874"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:17:02.765711"], ["updated_at", "2016-01-21 16:17:02.765711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:17:02.767376"], ["updated_at", "2016-01-21 16:17:02.767376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-21 16:17:02.770077"], ["updated_at", "2016-01-21 16:17:02.770077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:17:02.772284"], ["updated_at", "2016-01-21 16:17:02.772284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-21 16:17:02.775157"], ["updated_at", "2016-01-21 16:17:02.775157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:17:02.777111"], ["updated_at", "2016-01-21 16:17:02.777111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-21 16:17:02.779587"], ["updated_at", "2016-01-21 16:17:02.779587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:17:02.781431"], ["updated_at", "2016-01-21 16:17:02.781431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Load (2.9ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? [["post_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-21 16:18:03.590042"], ["updated_at", "2016-01-21 16:18:03.590042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-21 16:18:03.598827"], ["updated_at", "2016-01-21 16:18:03.598827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-21 16:18:03.613385"], ["updated_at", "2016-01-21 16:18:03.613385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:03.627155"], ["updated_at", "2016-01-21 16:18:03.627155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-21 16:18:03.652690"], ["updated_at", "2016-01-21 16:18:03.652690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-21 16:18:03.658735"], ["updated_at", "2016-01-21 16:18:03.658735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-21 16:18:03.666794"], ["updated_at", "2016-01-21 16:18:03.666794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:18:03.672851"], ["updated_at", "2016-01-21 16:18:03.672851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 16' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:03.675792"], ["updated_at", "2016-01-21 16:18:03.675792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:18:03.682697"], ["updated_at", "2016-01-21 16:18:03.682697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 17' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:03.685199"], ["updated_at", "2016-01-21 16:18:03.685199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-21 16:18:03.692283"], ["updated_at", "2016-01-21 16:18:03.692283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-21 16:18:03.699436"], ["updated_at", "2016-01-21 16:18:03.699436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (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" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-21 16:18:03.705457"], ["updated_at", "2016-01-21 16:18:03.705457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:03.877896"], ["updated_at", "2016-01-21 16:18:03.877896"]]  (0.0ms) RELEASE 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 1 [["slug", "winterfell-news-5"]]  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:03.898577"], ["updated_at", "2016-01-21 16:18:03.898577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-21 16:18:03.902277"], ["updated_at", "2016-01-21 16:18:03.902277"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:03.904691"], ["updated_at", "2016-01-21 16:18:03.904691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:03.909463"], ["updated_at", "2016-01-21 16:18:03.909463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-21 16:18:03.913369"], ["updated_at", "2016-01-21 16:18:03.913369"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:03.917516"], ["updated_at", "2016-01-21 16:18:03.917516"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-21 16:18:03.920648"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-21 16:18:03.934185"], ["updated_at", "2016-01-21 16:18:03.934185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:03.939033"], ["updated_at", "2016-01-21 16:18:03.939033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-21 16:18:03.942401"], ["updated_at", "2016-01-21 16:18:03.942401"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:03.944436"], ["updated_at", "2016-01-21 16:18:03.944436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:03.946071"], ["updated_at", "2016-01-21 16:18:03.946071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:03.979828"], ["updated_at", "2016-01-21 16:18:03.979828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-21 16:18:03.984994"], ["updated_at", "2016-01-21 16:18:03.984994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-21 16:18:04.051217"], ["updated_at", "2016-01-21 16:18:04.051217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:04.066436"], ["updated_at", "2016-01-21 16:18:04.066436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-21 16:18:04.071082"], ["updated_at", "2016-01-21 16:18:04.071082"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:04.073581"], ["updated_at", "2016-01-21 16:18:04.073581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.7ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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.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.7ms) 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';  (0.7ms) 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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:08.428783"], ["updated_at", "2016-01-21 16:18:08.428783"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-21 16:18:08.546714"], ["updated_at", "2016-01-21 16:18:08.546714"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:08.555046"], ["updated_at", "2016-01-21 16:18:08.555046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:08.557399"], ["updated_at", "2016-01-21 16:18:08.557399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-21 16:18:08.571115"], ["updated_at", "2016-01-21 16:18:08.571115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:18:08.574244"], ["updated_at", "2016-01-21 16:18:08.574244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-21 16:18:08.577108"], ["updated_at", "2016-01-21 16:18:08.577108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:18:08.579325"], ["updated_at", "2016-01-21 16:18:08.579325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-21 16:18:08.582441"], ["updated_at", "2016-01-21 16:18:08.582441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:18:08.584430"], ["updated_at", "2016-01-21 16:18:08.584430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:18:08.588681"], ["updated_at", "2016-01-21 16:18:08.588681"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:08.574244"], ["updated_at", "2016-01-21 16:18:08.574244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:08.597411"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:18:08.579325"], ["updated_at", "2016-01-21 16:18:08.579325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:08.603672"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:18:08.584430"], ["updated_at", "2016-01-21 16:18:08.584430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:08.608785"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:18:08.611839"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:08.619355"], ["updated_at", "2016-01-21 16:18:08.619355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-21 16:18:08.622051"], ["updated_at", "2016-01-21 16:18:08.622051"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:08.623906"], ["updated_at", "2016-01-21 16:18:08.623906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:08.625567"], ["updated_at", "2016-01-21 16:18:08.625567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-21 16:18:08.628607"], ["updated_at", "2016-01-21 16:18:08.628607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:18:08.630692"], ["updated_at", "2016-01-21 16:18:08.630692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-21 16:18:08.634855"], ["updated_at", "2016-01-21 16:18:08.634855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:18:08.637307"], ["updated_at", "2016-01-21 16:18:08.637307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-21 16:18:08.640395"], ["updated_at", "2016-01-21 16:18:08.640395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:18:08.642630"], ["updated_at", "2016-01-21 16:18:08.642630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:18:08.644989"], ["updated_at", "2016-01-21 16:18:08.644989"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:08.630692"], ["updated_at", "2016-01-21 16:18:08.630692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:08.653278"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:18:08.637307"], ["updated_at", "2016-01-21 16:18:08.637307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:08.659174"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:18:08.642630"], ["updated_at", "2016-01-21 16:18:08.642630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:08.664961"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:18:08.668010"], ["id", 3]]  (0.1ms) 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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:08.676078"], ["updated_at", "2016-01-21 16:18:08.676078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-21 16:18:08.684317"], ["updated_at", "2016-01-21 16:18:08.684317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-21 16:18:08.687192"], ["updated_at", "2016-01-21 16:18:08.687192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-21 16:18:08.689878"], ["updated_at", "2016-01-21 16:18:08.689878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-21 16:18:08.691247"], ["updated_at", "2016-01-21 16:18:08.691247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-21 16:18:08.693521"], ["updated_at", "2016-01-21 16:18:08.693521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-21 16:18:08.694773"], ["updated_at", "2016-01-21 16:18:08.694773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-21 16:18:08.700541"], ["updated_at", "2016-01-21 16:18:08.700541"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:08.702844"], ["updated_at", "2016-01-21 16:18:08.702844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-21 16:18:08.712967"], ["updated_at", "2016-01-21 16:18:08.712967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-21 16:18:08.719069"], ["updated_at", "2016-01-21 16:18:08.719069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-21 16:18:08.724013"], ["updated_at", "2016-01-21 16:18:08.724013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:08.732522"], ["updated_at", "2016-01-21 16:18:08.732522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-21 16:18:08.735513"], ["updated_at", "2016-01-21 16:18:08.735513"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:08.738013"], ["updated_at", "2016-01-21 16:18:08.738013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:08.740075"], ["updated_at", "2016-01-21 16:18:08.740075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-21 16:18:08.743180"], ["updated_at", "2016-01-21 16:18:08.743180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:18:08.745333"], ["updated_at", "2016-01-21 16:18:08.745333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-21 16:18:08.748117"], ["updated_at", "2016-01-21 16:18:08.748117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:18:08.750540"], ["updated_at", "2016-01-21 16:18:08.750540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-21 16:18:08.753230"], ["updated_at", "2016-01-21 16:18:08.753230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:18:08.755614"], ["updated_at", "2016-01-21 16:18:08.755614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-21 16:18:08.764528"], ["updated_at", "2016-01-21 16:18:08.764528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-21 16:18:08.770955"], ["updated_at", "2016-01-21 16:18:08.770955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-21 16:18:08.779656"], ["updated_at", "2016-01-21 16:18:08.779656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:08.788799"], ["updated_at", "2016-01-21 16:18:08.788799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.5ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-21 16:18:08.807296"], ["updated_at", "2016-01-21 16:18:08.807296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-21 16:18:08.812848"], ["updated_at", "2016-01-21 16:18:08.812848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-21 16:18:08.818803"], ["updated_at", "2016-01-21 16:18:08.818803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:18:08.824884"], ["updated_at", "2016-01-21 16:18:08.824884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 16' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:08.827337"], ["updated_at", "2016-01-21 16:18:08.827337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:18:08.833086"], ["updated_at", "2016-01-21 16:18:08.833086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 17' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:08.835571"], ["updated_at", "2016-01-21 16:18:08.835571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-21 16:18:08.841564"], ["updated_at", "2016-01-21 16:18:08.841564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-21 16:18:08.847663"], ["updated_at", "2016-01-21 16:18:08.847663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-21 16:18:08.854154"], ["updated_at", "2016-01-21 16:18:08.854154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:08.980267"], ["updated_at", "2016-01-21 16:18:08.980267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]]  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:08.994808"], ["updated_at", "2016-01-21 16:18:08.994808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-21 16:18:08.999248"], ["updated_at", "2016-01-21 16:18:08.999248"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:09.002136"], ["updated_at", "2016-01-21 16:18:09.002136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:09.009335"], ["updated_at", "2016-01-21 16:18:09.009335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-21 16:18:09.013122"], ["updated_at", "2016-01-21 16:18:09.013122"]] SQL (2.4ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:09.015991"], ["updated_at", "2016-01-21 16:18:09.015991"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-21 16:18:09.022798"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-21 16:18:09.039985"], ["updated_at", "2016-01-21 16:18:09.039985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:09.045702"], ["updated_at", "2016-01-21 16:18:09.045702"]]  (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 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-21 16:18:09.049128"], ["updated_at", "2016-01-21 16:18:09.049128"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:09.052492"], ["updated_at", "2016-01-21 16:18:09.052492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:09.054892"], ["updated_at", "2016-01-21 16:18:09.054892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:09.079632"], ["updated_at", "2016-01-21 16:18:09.079632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-21 16:18:09.083393"], ["updated_at", "2016-01-21 16:18:09.083393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-21 16:18:09.145676"], ["updated_at", "2016-01-21 16:18:09.145676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:09.162967"], ["updated_at", "2016-01-21 16:18:09.162967"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.7ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-21 16:18:09.165990"], ["updated_at", "2016-01-21 16:18:09.165990"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:09.173074"], ["updated_at", "2016-01-21 16:18:09.173074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (1.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.0ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.8ms) 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';  (0.8ms) 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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:22.745360"], ["updated_at", "2016-01-21 16:18:22.745360"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-21 16:18:22.865505"], ["updated_at", "2016-01-21 16:18:22.865505"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:22.874600"], ["updated_at", "2016-01-21 16:18:22.874600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:22.876827"], ["updated_at", "2016-01-21 16:18:22.876827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-21 16:18:22.889249"], ["updated_at", "2016-01-21 16:18:22.889249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:18:22.893156"], ["updated_at", "2016-01-21 16:18:22.893156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-21 16:18:22.896781"], ["updated_at", "2016-01-21 16:18:22.896781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:18:22.898917"], ["updated_at", "2016-01-21 16:18:22.898917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-21 16:18:22.901400"], ["updated_at", "2016-01-21 16:18:22.901400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:18:22.903207"], ["updated_at", "2016-01-21 16:18:22.903207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:18:22.908010"], ["updated_at", "2016-01-21 16:18:22.908010"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:22.893156"], ["updated_at", "2016-01-21 16:18:22.893156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:22.916465"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:18:22.898917"], ["updated_at", "2016-01-21 16:18:22.898917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:22.922826"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:18:22.903207"], ["updated_at", "2016-01-21 16:18:22.903207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:22.928403"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:18:22.931709"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:22.939395"], ["updated_at", "2016-01-21 16:18:22.939395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-21 16:18:22.942418"], ["updated_at", "2016-01-21 16:18:22.942418"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:22.944825"], ["updated_at", "2016-01-21 16:18:22.944825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:22.946426"], ["updated_at", "2016-01-21 16:18:22.946426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-21 16:18:22.949054"], ["updated_at", "2016-01-21 16:18:22.949054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:18:22.950977"], ["updated_at", "2016-01-21 16:18:22.950977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-21 16:18:22.953821"], ["updated_at", "2016-01-21 16:18:22.953821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:18:22.955836"], ["updated_at", "2016-01-21 16:18:22.955836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-21 16:18:22.958316"], ["updated_at", "2016-01-21 16:18:22.958316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:18:22.960191"], ["updated_at", "2016-01-21 16:18:22.960191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:18:22.962011"], ["updated_at", "2016-01-21 16:18:22.962011"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:22.950977"], ["updated_at", "2016-01-21 16:18:22.950977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:22.968885"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:18:22.955836"], ["updated_at", "2016-01-21 16:18:22.955836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:22.977484"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:18:22.960191"], ["updated_at", "2016-01-21 16:18:22.960191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:22.982529"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:18:22.984209"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:22.997430"], ["updated_at", "2016-01-21 16:18:22.997430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-21 16:18:23.005599"], ["updated_at", "2016-01-21 16:18:23.005599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-21 16:18:23.008018"], ["updated_at", "2016-01-21 16:18:23.008018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-21 16:18:23.010449"], ["updated_at", "2016-01-21 16:18:23.010449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-21 16:18:23.011996"], ["updated_at", "2016-01-21 16:18:23.011996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-21 16:18:23.014140"], ["updated_at", "2016-01-21 16:18:23.014140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-21 16:18:23.015368"], ["updated_at", "2016-01-21 16:18:23.015368"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-21 16:18:23.020110"], ["updated_at", "2016-01-21 16:18:23.020110"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:23.023275"], ["updated_at", "2016-01-21 16:18:23.023275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-21 16:18:23.031753"], ["updated_at", "2016-01-21 16:18:23.031753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-21 16:18:23.036891"], ["updated_at", "2016-01-21 16:18:23.036891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-21 16:18:23.045023"], ["updated_at", "2016-01-21 16:18:23.045023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:23.052324"], ["updated_at", "2016-01-21 16:18:23.052324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-21 16:18:23.055526"], ["updated_at", "2016-01-21 16:18:23.055526"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:23.057631"], ["updated_at", "2016-01-21 16:18:23.057631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:23.059467"], ["updated_at", "2016-01-21 16:18:23.059467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-21 16:18:23.062659"], ["updated_at", "2016-01-21 16:18:23.062659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:18:23.064887"], ["updated_at", "2016-01-21 16:18:23.064887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-21 16:18:23.067470"], ["updated_at", "2016-01-21 16:18:23.067470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:18:23.069500"], ["updated_at", "2016-01-21 16:18:23.069500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-21 16:18:23.073751"], ["updated_at", "2016-01-21 16:18:23.073751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:18:23.076058"], ["updated_at", "2016-01-21 16:18:23.076058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-21 16:18:44.423197"], ["updated_at", "2016-01-21 16:18:44.423197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-21 16:18:44.430940"], ["updated_at", "2016-01-21 16:18:44.430940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-21 16:18:44.462860"], ["updated_at", "2016-01-21 16:18:44.462860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:44.470895"], ["updated_at", "2016-01-21 16:18:44.470895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-21 16:18:44.488312"], ["updated_at", "2016-01-21 16:18:44.488312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-21 16:18:44.493560"], ["updated_at", "2016-01-21 16:18:44.493560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-21 16:18:44.502524"], ["updated_at", "2016-01-21 16:18:44.502524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:18:44.509238"], ["updated_at", "2016-01-21 16:18:44.509238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 16' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:44.512019"], ["updated_at", "2016-01-21 16:18:44.512019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:18:44.518525"], ["updated_at", "2016-01-21 16:18:44.518525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 17' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:44.521211"], ["updated_at", "2016-01-21 16:18:44.521211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-21 16:18:44.527715"], ["updated_at", "2016-01-21 16:18:44.527715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-21 16:18:44.534143"], ["updated_at", "2016-01-21 16:18:44.534143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-21 16:18:44.540379"], ["updated_at", "2016-01-21 16:18:44.540379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:44.664408"], ["updated_at", "2016-01-21 16:18:44.664408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:44.683178"], ["updated_at", "2016-01-21 16:18:44.683178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-21 16:18:44.687041"], ["updated_at", "2016-01-21 16:18:44.687041"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:44.693308"], ["updated_at", "2016-01-21 16:18:44.693308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:44.701628"], ["updated_at", "2016-01-21 16:18:44.701628"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-21 16:18:44.708861"], ["updated_at", "2016-01-21 16:18:44.708861"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:44.711850"], ["updated_at", "2016-01-21 16:18:44.711850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.5ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-21 16:18:44.715615"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-21 16:18:44.732008"], ["updated_at", "2016-01-21 16:18:44.732008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:44.736750"], ["updated_at", "2016-01-21 16:18:44.736750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-21 16:18:44.739721"], ["updated_at", "2016-01-21 16:18:44.739721"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:44.741636"], ["updated_at", "2016-01-21 16:18:44.741636"]]  (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", "2016-01-21 16:18:44.743147"], ["updated_at", "2016-01-21 16:18:44.743147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:44.771952"], ["updated_at", "2016-01-21 16:18:44.771952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-21 16:18:44.775388"], ["updated_at", "2016-01-21 16:18:44.775388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-21 16:18:44.827358"], ["updated_at", "2016-01-21 16:18:44.827358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:44.846377"], ["updated_at", "2016-01-21 16:18:44.846377"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-21 16:18:44.854546"], ["updated_at", "2016-01-21 16:18:44.854546"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:44.857620"], ["updated_at", "2016-01-21 16:18:44.857620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.9ms) DELETE FROM "pulitzer_content_element_types";  (0.3ms) 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.2ms) 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.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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (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_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.8ms) 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';  (0.7ms) 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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:48.235529"], ["updated_at", "2016-01-21 16:18:48.235529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-21 16:18:48.348020"], ["updated_at", "2016-01-21 16:18:48.348020"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:48.358224"], ["updated_at", "2016-01-21 16:18:48.358224"]]  (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", "2016-01-21 16:18:48.360970"], ["updated_at", "2016-01-21 16:18:48.360970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-21 16:18:48.373403"], ["updated_at", "2016-01-21 16:18:48.373403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:18:48.376657"], ["updated_at", "2016-01-21 16:18:48.376657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-21 16:18:48.379768"], ["updated_at", "2016-01-21 16:18:48.379768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:18:48.381757"], ["updated_at", "2016-01-21 16:18:48.381757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-21 16:18:48.384288"], ["updated_at", "2016-01-21 16:18:48.384288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:18:48.386138"], ["updated_at", "2016-01-21 16:18:48.386138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:18:48.390254"], ["updated_at", "2016-01-21 16:18:48.390254"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:48.376657"], ["updated_at", "2016-01-21 16:18:48.376657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:48.398828"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:18:48.381757"], ["updated_at", "2016-01-21 16:18:48.381757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:48.405399"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:18:48.386138"], ["updated_at", "2016-01-21 16:18:48.386138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:48.410653"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:18:48.413739"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:48.420944"], ["updated_at", "2016-01-21 16:18:48.420944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-21 16:18:48.423651"], ["updated_at", "2016-01-21 16:18:48.423651"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:48.425684"], ["updated_at", "2016-01-21 16:18:48.425684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:48.427450"], ["updated_at", "2016-01-21 16:18:48.427450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-21 16:18:48.430046"], ["updated_at", "2016-01-21 16:18:48.430046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:18:48.432299"], ["updated_at", "2016-01-21 16:18:48.432299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-21 16:18:48.437104"], ["updated_at", "2016-01-21 16:18:48.437104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:18:48.439889"], ["updated_at", "2016-01-21 16:18:48.439889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-21 16:18:48.442942"], ["updated_at", "2016-01-21 16:18:48.442942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:18:48.444958"], ["updated_at", "2016-01-21 16:18:48.444958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:18:48.446874"], ["updated_at", "2016-01-21 16:18:48.446874"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:18:48.432299"], ["updated_at", "2016-01-21 16:18:48.432299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:48.454689"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:18:48.439889"], ["updated_at", "2016-01-21 16:18:48.439889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:48.463616"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:18:48.444958"], ["updated_at", "2016-01-21 16:18:48.444958"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:18:48.476520"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:18:48.478586"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:48.487191"], ["updated_at", "2016-01-21 16:18:48.487191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-21 16:18:48.494531"], ["updated_at", "2016-01-21 16:18:48.494531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-21 16:18:48.497011"], ["updated_at", "2016-01-21 16:18:48.497011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-21 16:18:48.499713"], ["updated_at", "2016-01-21 16:18:48.499713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-21 16:18:48.501047"], ["updated_at", "2016-01-21 16:18:48.501047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-21 16:18:48.503309"], ["updated_at", "2016-01-21 16:18:48.503309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-21 16:18:48.504770"], ["updated_at", "2016-01-21 16:18:48.504770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-21 16:18:48.509872"], ["updated_at", "2016-01-21 16:18:48.509872"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:48.511566"], ["updated_at", "2016-01-21 16:18:48.511566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-21 16:18:48.519393"], ["updated_at", "2016-01-21 16:18:48.519393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-21 16:18:48.524587"], ["updated_at", "2016-01-21 16:18:48.524587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-21 16:18:48.529096"], ["updated_at", "2016-01-21 16:18:48.529096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:18:48.539919"], ["updated_at", "2016-01-21 16:18:48.539919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-21 16:18:48.542817"], ["updated_at", "2016-01-21 16:18:48.542817"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:48.544880"], ["updated_at", "2016-01-21 16:18:48.544880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:18:48.546333"], ["updated_at", "2016-01-21 16:18:48.546333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-21 16:18:48.549142"], ["updated_at", "2016-01-21 16:18:48.549142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:18:48.551508"], ["updated_at", "2016-01-21 16:18:48.551508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-21 16:18:48.554675"], ["updated_at", "2016-01-21 16:18:48.554675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:18:48.556791"], ["updated_at", "2016-01-21 16:18:48.556791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-21 16:18:48.559512"], ["updated_at", "2016-01-21 16:18:48.559512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:18:48.561607"], ["updated_at", "2016-01-21 16:18:48.561607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-21 16:19:07.998241"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-21 16:19:08.031780"], ["updated_at", "2016-01-21 16:19:08.031780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-21 16:19:08.038053"], ["updated_at", "2016-01-21 16:19:08.038053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-21 16:19:08.047993"], ["updated_at", "2016-01-21 16:19:08.047993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:19:08.054754"], ["updated_at", "2016-01-21 16:19:08.054754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-21 16:19:08.073498"], ["updated_at", "2016-01-21 16:19:08.073498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-21 16:19:08.079855"], ["updated_at", "2016-01-21 16:19:08.079855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-21 16:19:08.084940"], ["updated_at", "2016-01-21 16:19:08.084940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:19:08.090573"], ["updated_at", "2016-01-21 16:19:08.090573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 16' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:19:08.093463"], ["updated_at", "2016-01-21 16:19:08.093463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:19:08.101053"], ["updated_at", "2016-01-21 16:19:08.101053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 17' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:19:08.104064"], ["updated_at", "2016-01-21 16:19:08.104064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.7ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-21 16:19:08.113387"], ["updated_at", "2016-01-21 16:19:08.113387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-21 16:19:08.119597"], ["updated_at", "2016-01-21 16:19:08.119597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-21 16:19:08.127344"], ["updated_at", "2016-01-21 16:19:08.127344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:19:08.248502"], ["updated_at", "2016-01-21 16:19:08.248502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]]  (0.4ms) rollback transaction  (0.5ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:19:08.266455"], ["updated_at", "2016-01-21 16:19:08.266455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-21 16:19:08.271297"], ["updated_at", "2016-01-21 16:19:08.271297"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:19:08.274532"], ["updated_at", "2016-01-21 16:19:08.274532"]]  (0.1ms) RELEASE SAVEPOINT active_record_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.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:19:08.280263"], ["updated_at", "2016-01-21 16:19:08.280263"]]  (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 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-21 16:19:08.285767"], ["updated_at", "2016-01-21 16:19:08.285767"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:19:08.288456"], ["updated_at", "2016-01-21 16:19:08.288456"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.4ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-21 16:19:08.291592"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-21 16:19:08.312582"], ["updated_at", "2016-01-21 16:19:08.312582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:19:08.317631"], ["updated_at", "2016-01-21 16:19:08.317631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-21 16:19:08.320792"], ["updated_at", "2016-01-21 16:19:08.320792"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:19:08.322445"], ["updated_at", "2016-01-21 16:19:08.322445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:19:08.324009"], ["updated_at", "2016-01-21 16:19:08.324009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:19:08.352222"], ["updated_at", "2016-01-21 16:19:08.352222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-21 16:19:08.355650"], ["updated_at", "2016-01-21 16:19:08.355650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-21 16:19:08.407208"], ["updated_at", "2016-01-21 16:19:08.407208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:19:08.429519"], ["updated_at", "2016-01-21 16:19:08.429519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-21 16:19:08.433031"], ["updated_at", "2016-01-21 16:19:08.433031"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:19:08.435242"], ["updated_at", "2016-01-21 16:19:08.435242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.8ms) DELETE FROM "pulitzer_content_element_types";  (0.1ms) 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.2ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (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';  (0.8ms) 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.8ms) 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';  (0.8ms) 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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:20:20.581653"], ["updated_at", "2016-01-21 16:20:20.581653"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-21 16:20:20.697734"], ["updated_at", "2016-01-21 16:20:20.697734"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:20:20.706009"], ["updated_at", "2016-01-21 16:20:20.706009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:20:20.708550"], ["updated_at", "2016-01-21 16:20:20.708550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-21 16:20:20.723738"], ["updated_at", "2016-01-21 16:20:20.723738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:20:20.727495"], ["updated_at", "2016-01-21 16:20:20.727495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-21 16:20:20.730916"], ["updated_at", "2016-01-21 16:20:20.730916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:20:20.733042"], ["updated_at", "2016-01-21 16:20:20.733042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-21 16:20:20.735741"], ["updated_at", "2016-01-21 16:20:20.735741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:20:20.737804"], ["updated_at", "2016-01-21 16:20:20.737804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:20:20.742152"], ["updated_at", "2016-01-21 16:20:20.742152"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:20:20.727495"], ["updated_at", "2016-01-21 16:20:20.727495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:20:20.751034"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:20:20.733042"], ["updated_at", "2016-01-21 16:20:20.733042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:20:20.757244"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:20:20.737804"], ["updated_at", "2016-01-21 16:20:20.737804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:20:20.762968"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:20:20.766125"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:20:20.773593"], ["updated_at", "2016-01-21 16:20:20.773593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-21 16:20:20.776162"], ["updated_at", "2016-01-21 16:20:20.776162"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:20:20.778273"], ["updated_at", "2016-01-21 16:20:20.778273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:20:20.780183"], ["updated_at", "2016-01-21 16:20:20.780183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-21 16:20:20.782816"], ["updated_at", "2016-01-21 16:20:20.782816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:20:20.785059"], ["updated_at", "2016-01-21 16:20:20.785059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-21 16:20:20.787744"], ["updated_at", "2016-01-21 16:20:20.787744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:20:20.789655"], ["updated_at", "2016-01-21 16:20:20.789655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-21 16:20:20.792743"], ["updated_at", "2016-01-21 16:20:20.792743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:20:20.794937"], ["updated_at", "2016-01-21 16:20:20.794937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:20:20.796983"], ["updated_at", "2016-01-21 16:20:20.796983"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:20:20.785059"], ["updated_at", "2016-01-21 16:20:20.785059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:20:20.803569"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:20:20.789655"], ["updated_at", "2016-01-21 16:20:20.789655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:20:20.811206"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:20:20.794937"], ["updated_at", "2016-01-21 16:20:20.794937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:20:20.817238"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:20:20.819194"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:20:20.827637"], ["updated_at", "2016-01-21 16:20:20.827637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-21 16:20:20.835701"], ["updated_at", "2016-01-21 16:20:20.835701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-21 16:20:20.838268"], ["updated_at", "2016-01-21 16:20:20.838268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-21 16:20:20.841249"], ["updated_at", "2016-01-21 16:20:20.841249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-21 16:20:20.843464"], ["updated_at", "2016-01-21 16:20:20.843464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-21 16:20:20.846066"], ["updated_at", "2016-01-21 16:20:20.846066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-21 16:20:20.847442"], ["updated_at", "2016-01-21 16:20:20.847442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-21 16:20:20.852048"], ["updated_at", "2016-01-21 16:20:20.852048"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:20:20.853788"], ["updated_at", "2016-01-21 16:20:20.853788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-21 16:20:20.862600"], ["updated_at", "2016-01-21 16:20:20.862600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-21 16:20:20.868028"], ["updated_at", "2016-01-21 16:20:20.868028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-21 16:20:20.872543"], ["updated_at", "2016-01-21 16:20:20.872543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:20:20.880858"], ["updated_at", "2016-01-21 16:20:20.880858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-21 16:20:20.883515"], ["updated_at", "2016-01-21 16:20:20.883515"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:20:20.885448"], ["updated_at", "2016-01-21 16:20:20.885448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:20:20.887170"], ["updated_at", "2016-01-21 16:20:20.887170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-21 16:20:20.890100"], ["updated_at", "2016-01-21 16:20:20.890100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:20:20.892248"], ["updated_at", "2016-01-21 16:20:20.892248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-21 16:20:20.894926"], ["updated_at", "2016-01-21 16:20:20.894926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:20:20.896920"], ["updated_at", "2016-01-21 16:20:20.896920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-21 16:20:20.899424"], ["updated_at", "2016-01-21 16:20:20.899424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:20:20.901820"], ["updated_at", "2016-01-21 16:20:20.901820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-21 16:20:20.904534"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2e2a1548-cc68-46b1-b80b-e58cb7ccabad) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:20:20.912096"], ["updated_at", "2016-01-21 16:20:20.912096"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:20:20.892248"], ["updated_at", "2016-01-21 16:20:20.892248"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:20:20.920382"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:20:20.896920"], ["updated_at", "2016-01-21 16:20:20.896920"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:20:20.926850"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:20:20.901820"], ["updated_at", "2016-01-21 16:20:20.901820"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:20:20.932849"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:20:20.935006"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e2a1548-cc68-46b1-b80b-e58cb7ccabad] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.37ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-21 16:20:20.947876"], ["updated_at", "2016-01-21 16:20:20.947876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-21 16:20:20.953863"], ["updated_at", "2016-01-21 16:20:20.953863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-21 16:20:20.962960"], ["updated_at", "2016-01-21 16:20:20.962960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:20:20.971724"], ["updated_at", "2016-01-21 16:20:20.971724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-21 16:20:20.989997"], ["updated_at", "2016-01-21 16:20:20.989997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-21 16:20:20.996418"], ["updated_at", "2016-01-21 16:20:20.996418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-21 16:20:21.001618"], ["updated_at", "2016-01-21 16:20:21.001618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:20:21.007667"], ["updated_at", "2016-01-21 16:20:21.007667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 16' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:20:21.010068"], ["updated_at", "2016-01-21 16:20:21.010068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:20:21.015993"], ["updated_at", "2016-01-21 16:20:21.015993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 17' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:20:21.019103"], ["updated_at", "2016-01-21 16:20:21.019103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-21 16:20:21.025508"], ["updated_at", "2016-01-21 16:20:21.025508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-21 16:20:21.031823"], ["updated_at", "2016-01-21 16:20:21.031823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-21 16:20:21.038434"], ["updated_at", "2016-01-21 16:20:21.038434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:20:21.165710"], ["updated_at", "2016-01-21 16:20:21.165710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:20:21.182609"], ["updated_at", "2016-01-21 16:20:21.182609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-01-21 16:20:21.186721"], ["updated_at", "2016-01-21 16:20:21.186721"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:20:21.188994"], ["updated_at", "2016-01-21 16:20:21.188994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:20:21.195103"], ["updated_at", "2016-01-21 16:20:21.195103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-21 16:20:21.198904"], ["updated_at", "2016-01-21 16:20:21.198904"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:20:21.204051"], ["updated_at", "2016-01-21 16:20:21.204051"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-21 16:20:21.207123"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) commit transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-21 16:20:21.225957"], ["updated_at", "2016-01-21 16:20:21.225957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:20:21.233023"], ["updated_at", "2016-01-21 16:20:21.233023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-21 16:20:21.236121"], ["updated_at", "2016-01-21 16:20:21.236121"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:20:21.238917"], ["updated_at", "2016-01-21 16:20:21.238917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:20:21.241112"], ["updated_at", "2016-01-21 16:20:21.241112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:20:21.285581"], ["updated_at", "2016-01-21 16:20:21.285581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-21 16:20:21.289104"], ["updated_at", "2016-01-21 16:20:21.289104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-21 16:20:21.344176"], ["updated_at", "2016-01-21 16:20:21.344176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:20:21.368655"], ["updated_at", "2016-01-21 16:20:21.368655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-21 16:20:21.372649"], ["updated_at", "2016-01-21 16:20:21.372649"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:20:21.375356"], ["updated_at", "2016-01-21 16:20:21.375356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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';  (1.0ms) 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.0ms) 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.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.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.8ms) 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';  (0.8ms) 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.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:31:09.758671"], ["updated_at", "2016-01-21 16:31:09.758671"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-21 16:31:09.872280"], ["updated_at", "2016-01-21 16:31:09.872280"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:09.879884"], ["updated_at", "2016-01-21 16:31:09.879884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:09.882436"], ["updated_at", "2016-01-21 16:31:09.882436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-21 16:31:09.894654"], ["updated_at", "2016-01-21 16:31:09.894654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:31:09.897818"], ["updated_at", "2016-01-21 16:31:09.897818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-21 16:31:09.900632"], ["updated_at", "2016-01-21 16:31:09.900632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:31:09.902702"], ["updated_at", "2016-01-21 16:31:09.902702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-21 16:31:09.905806"], ["updated_at", "2016-01-21 16:31:09.905806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:31:09.907790"], ["updated_at", "2016-01-21 16:31:09.907790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:31:09.911765"], ["updated_at", "2016-01-21 16:31:09.911765"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:31:09.897818"], ["updated_at", "2016-01-21 16:31:09.897818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:31:09.920104"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:31:09.902702"], ["updated_at", "2016-01-21 16:31:09.902702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:31:09.926235"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:31:09.907790"], ["updated_at", "2016-01-21 16:31:09.907790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:31:09.932285"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:31:09.935300"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:31:09.942650"], ["updated_at", "2016-01-21 16:31:09.942650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-21 16:31:09.945235"], ["updated_at", "2016-01-21 16:31:09.945235"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:09.947716"], ["updated_at", "2016-01-21 16:31:09.947716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:09.949770"], ["updated_at", "2016-01-21 16:31:09.949770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-21 16:31:09.952641"], ["updated_at", "2016-01-21 16:31:09.952641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:31:09.954708"], ["updated_at", "2016-01-21 16:31:09.954708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-21 16:31:09.957206"], ["updated_at", "2016-01-21 16:31:09.957206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:31:09.959439"], ["updated_at", "2016-01-21 16:31:09.959439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-21 16:31:09.962324"], ["updated_at", "2016-01-21 16:31:09.962324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:31:09.964770"], ["updated_at", "2016-01-21 16:31:09.964770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:31:09.966653"], ["updated_at", "2016-01-21 16:31:09.966653"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:31:09.954708"], ["updated_at", "2016-01-21 16:31:09.954708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:31:09.973082"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:31:09.959439"], ["updated_at", "2016-01-21 16:31:09.959439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.4ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:31:09.983598"], ["id", 5]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:31:09.964770"], ["updated_at", "2016-01-21 16:31:09.964770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:31:09.994920"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:31:09.997721"], ["id", 3]]  (0.1ms) 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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:31:10.006677"], ["updated_at", "2016-01-21 16:31:10.006677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-21 16:31:10.014039"], ["updated_at", "2016-01-21 16:31:10.014039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-21 16:31:10.016395"], ["updated_at", "2016-01-21 16:31:10.016395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-21 16:31:10.018883"], ["updated_at", "2016-01-21 16:31:10.018883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-21 16:31:10.020323"], ["updated_at", "2016-01-21 16:31:10.020323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-21 16:31:10.022591"], ["updated_at", "2016-01-21 16:31:10.022591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-21 16:31:10.023854"], ["updated_at", "2016-01-21 16:31:10.023854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-21 16:31:10.028214"], ["updated_at", "2016-01-21 16:31:10.028214"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:10.029762"], ["updated_at", "2016-01-21 16:31:10.029762"]]  (0.0ms) RELEASE SAVEPOINT active_record_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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-21 16:31:10.037765"], ["updated_at", "2016-01-21 16:31:10.037765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-21 16:31:10.043356"], ["updated_at", "2016-01-21 16:31:10.043356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-21 16:31:10.049023"], ["updated_at", "2016-01-21 16:31:10.049023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:31:10.058682"], ["updated_at", "2016-01-21 16:31:10.058682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-21 16:31:10.061276"], ["updated_at", "2016-01-21 16:31:10.061276"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:10.063145"], ["updated_at", "2016-01-21 16:31:10.063145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:10.065054"], ["updated_at", "2016-01-21 16:31:10.065054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-21 16:31:10.068426"], ["updated_at", "2016-01-21 16:31:10.068426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:31:10.070616"], ["updated_at", "2016-01-21 16:31:10.070616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-21 16:31:10.073254"], ["updated_at", "2016-01-21 16:31:10.073254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:31:10.075178"], ["updated_at", "2016-01-21 16:31:10.075178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-21 16:31:10.077669"], ["updated_at", "2016-01-21 16:31:10.077669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:31:10.079777"], ["updated_at", "2016-01-21 16:31:10.079777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-21 16:31:10.081995"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: a75239df-e461-4443-bbe4-01b7020f4afa) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:31:10.088329"], ["updated_at", "2016-01-21 16:31:10.088329"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:31:10.070616"], ["updated_at", "2016-01-21 16:31:10.070616"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:31:10.096368"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Pulitzer::ContentElementType Load (0.3ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:31:10.075178"], ["updated_at", "2016-01-21 16:31:10.075178"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:31:10.104301"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:31:10.079777"], ["updated_at", "2016-01-21 16:31:10.079777"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:31:10.109485"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:31:10.111194"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a75239df-e461-4443-bbe4-01b7020f4afa] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.41ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:31:10.120295"], ["updated_at", "2016-01-21 16:31:10.120295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-21 16:31:10.122758"], ["updated_at", "2016-01-21 16:31:10.122758"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:10.124537"], ["updated_at", "2016-01-21 16:31:10.124537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:10.126076"], ["updated_at", "2016-01-21 16:31:10.126076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-21 16:31:10.129262"], ["updated_at", "2016-01-21 16:31:10.129262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:31:10.131950"], ["updated_at", "2016-01-21 16:31:10.131950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-21 16:31:10.134594"], ["updated_at", "2016-01-21 16:31:10.134594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:31:10.136803"], ["updated_at", "2016-01-21 16:31:10.136803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-21 16:31:10.139499"], ["updated_at", "2016-01-21 16:31:10.139499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:31:10.141548"], ["updated_at", "2016-01-21 16:31:10.141548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-21 16:31:10.143555"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-21 16:31:10.151460"], ["updated_at", "2016-01-21 16:31:10.151460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 13' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-21 16:31:10.157967"], ["updated_at", "2016-01-21 16:31:10.157967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-21 16:31:10.168354"], ["updated_at", "2016-01-21 16:31:10.168354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:31:10.175782"], ["updated_at", "2016-01-21 16:31:10.175782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-21 16:31:10.195762"], ["updated_at", "2016-01-21 16:31:10.195762"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-21 16:31:10.202531"], ["updated_at", "2016-01-21 16:31:10.202531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-21 16:31:10.208194"], ["updated_at", "2016-01-21 16:31:10.208194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:31:10.213248"], ["updated_at", "2016-01-21 16:31:10.213248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 19' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:31:10.216003"], ["updated_at", "2016-01-21 16:31:10.216003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:31:10.221914"], ["updated_at", "2016-01-21 16:31:10.221914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 20' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:31:10.224022"], ["updated_at", "2016-01-21 16:31:10.224022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-21 16:31:10.230002"], ["updated_at", "2016-01-21 16:31:10.230002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-01-21 16:31:10.237464"], ["updated_at", "2016-01-21 16:31:10.237464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-21 16:31:10.243153"], ["updated_at", "2016-01-21 16:31:10.243153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:31:10.374521"], ["updated_at", "2016-01-21 16:31:10.374521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:31:10.387696"], ["updated_at", "2016-01-21 16:31:10.387696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-21 16:31:10.393228"], ["updated_at", "2016-01-21 16:31:10.393228"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:10.395495"], ["updated_at", "2016-01-21 16:31:10.395495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:31:10.405853"], ["updated_at", "2016-01-21 16:31:10.405853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-21 16:31:10.409897"], ["updated_at", "2016-01-21 16:31:10.409897"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:10.411670"], ["updated_at", "2016-01-21 16:31:10.411670"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-21 16:31:10.414937"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-21 16:31:10.444339"], ["updated_at", "2016-01-21 16:31:10.444339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:31:10.450217"], ["updated_at", "2016-01-21 16:31:10.450217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-21 16:31:10.453488"], ["updated_at", "2016-01-21 16:31:10.453488"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:10.455464"], ["updated_at", "2016-01-21 16:31:10.455464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:10.458060"], ["updated_at", "2016-01-21 16:31:10.458060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:31:10.486454"], ["updated_at", "2016-01-21 16:31:10.486454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-01-21 16:31:10.490450"], ["updated_at", "2016-01-21 16:31:10.490450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-21 16:31:10.553295"], ["updated_at", "2016-01-21 16:31:10.553295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:31:10.570015"], ["updated_at", "2016-01-21 16:31:10.570015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-21 16:31:10.572940"], ["updated_at", "2016-01-21 16:31:10.572940"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:31:10.574754"], ["updated_at", "2016-01-21 16:31:10.574754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction 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.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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_tags';  (0.9ms) 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.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (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_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.8ms) 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';  (0.8ms) 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.0ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:32:05.966414"], ["updated_at", "2016-01-21 16:32:05.966414"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-21 16:32:06.086628"], ["updated_at", "2016-01-21 16:32:06.086628"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:32:06.094838"], ["updated_at", "2016-01-21 16:32:06.094838"]]  (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", "2016-01-21 16:32:06.097809"], ["updated_at", "2016-01-21 16:32:06.097809"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-21 16:32:06.110759"], ["updated_at", "2016-01-21 16:32:06.110759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:32:06.114212"], ["updated_at", "2016-01-21 16:32:06.114212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-21 16:32:06.117056"], ["updated_at", "2016-01-21 16:32:06.117056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:32:06.119001"], ["updated_at", "2016-01-21 16:32:06.119001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-21 16:32:06.121905"], ["updated_at", "2016-01-21 16:32:06.121905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:32:06.123849"], ["updated_at", "2016-01-21 16:32:06.123849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:32:06.127912"], ["updated_at", "2016-01-21 16:32:06.127912"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:32:06.114212"], ["updated_at", "2016-01-21 16:32:06.114212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:32:06.136883"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:32:06.119001"], ["updated_at", "2016-01-21 16:32:06.119001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:32:06.144001"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:32:06.123849"], ["updated_at", "2016-01-21 16:32:06.123849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:32:06.149400"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:32:06.152714"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:32:06.160422"], ["updated_at", "2016-01-21 16:32:06.160422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-21 16:32:06.163339"], ["updated_at", "2016-01-21 16:32:06.163339"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:32:06.165247"], ["updated_at", "2016-01-21 16:32:06.165247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:32:06.167436"], ["updated_at", "2016-01-21 16:32:06.167436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-21 16:32:06.170158"], ["updated_at", "2016-01-21 16:32:06.170158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:32:06.172154"], ["updated_at", "2016-01-21 16:32:06.172154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-21 16:32:06.175142"], ["updated_at", "2016-01-21 16:32:06.175142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:32:06.177208"], ["updated_at", "2016-01-21 16:32:06.177208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-21 16:32:06.180307"], ["updated_at", "2016-01-21 16:32:06.180307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:32:06.182618"], ["updated_at", "2016-01-21 16:32:06.182618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:32:06.184763"], ["updated_at", "2016-01-21 16:32:06.184763"]]  (0.1ms) 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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:32:06.172154"], ["updated_at", "2016-01-21 16:32:06.172154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:32:06.192072"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (2.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:32:06.177208"], ["updated_at", "2016-01-21 16:32:06.177208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:32:06.201635"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:32:06.182618"], ["updated_at", "2016-01-21 16:32:06.182618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:32:06.206884"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:32:06.212042"], ["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:32:06.222928"], ["updated_at", "2016-01-21 16:32:06.222928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-21 16:32:06.230930"], ["updated_at", "2016-01-21 16:32:06.230930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-21 16:32:06.234199"], ["updated_at", "2016-01-21 16:32:06.234199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-21 16:32:06.237420"], ["updated_at", "2016-01-21 16:32:06.237420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-21 16:32:06.239045"], ["updated_at", "2016-01-21 16:32:06.239045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-21 16:32:06.241534"], ["updated_at", "2016-01-21 16:32:06.241534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-21 16:32:06.242923"], ["updated_at", "2016-01-21 16:32:06.242923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-21 16:32:06.247789"], ["updated_at", "2016-01-21 16:32:06.247789"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:32:06.249603"], ["updated_at", "2016-01-21 16:32:06.249603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-21 16:32:06.258120"], ["updated_at", "2016-01-21 16:32:06.258120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-21 16:32:06.263364"], ["updated_at", "2016-01-21 16:32:06.263364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-21 16:32:06.267731"], ["updated_at", "2016-01-21 16:32:06.267731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:32:06.276607"], ["updated_at", "2016-01-21 16:32:06.276607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-21 16:32:06.280849"], ["updated_at", "2016-01-21 16:32:06.280849"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:32:06.283249"], ["updated_at", "2016-01-21 16:32:06.283249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:32:06.284857"], ["updated_at", "2016-01-21 16:32:06.284857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-21 16:32:06.287496"], ["updated_at", "2016-01-21 16:32:06.287496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:32:06.289571"], ["updated_at", "2016-01-21 16:32:06.289571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-21 16:32:06.293966"], ["updated_at", "2016-01-21 16:32:06.293966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:32:06.296593"], ["updated_at", "2016-01-21 16:32:06.296593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-21 16:32:06.299630"], ["updated_at", "2016-01-21 16:32:06.299630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:32:06.301810"], ["updated_at", "2016-01-21 16:32:06.301810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-21 16:32:06.304048"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 63233040-9f60-42be-94ab-49004f437817) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:32:06.311073"], ["updated_at", "2016-01-21 16:32:06.311073"]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:32:06.289571"], ["updated_at", "2016-01-21 16:32:06.289571"]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:32:06.318019"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:32:06.296593"], ["updated_at", "2016-01-21 16:32:06.296593"]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] SQL (0.3ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:32:06.323693"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Pulitzer::ContentElementType Load (0.3ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:32:06.301810"], ["updated_at", "2016-01-21 16:32:06.301810"]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:32:06.333101"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:32:06.335053"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [63233040-9f60-42be-94ab-49004f437817] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.98ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:32:06.344839"], ["updated_at", "2016-01-21 16:32:06.344839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-21 16:32:06.347609"], ["updated_at", "2016-01-21 16:32:06.347609"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:32:06.349485"], ["updated_at", "2016-01-21 16:32:06.349485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:32:06.351202"], ["updated_at", "2016-01-21 16:32:06.351202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-21 16:32:06.354600"], ["updated_at", "2016-01-21 16:32:06.354600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:32:06.357143"], ["updated_at", "2016-01-21 16:32:06.357143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-21 16:32:06.360053"], ["updated_at", "2016-01-21 16:32:06.360053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:32:06.362138"], ["updated_at", "2016-01-21 16:32:06.362138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-21 16:32:06.364948"], ["updated_at", "2016-01-21 16:32:06.364948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:32:06.366899"], ["updated_at", "2016-01-21 16:32:06.366899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-21 16:32:06.369116"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 0e37057f-b271-4f0b-a76b-6797d3352c60) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:32:06.372507"], ["updated_at", "2016-01-21 16:32:06.372507"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:32:06.357143"], ["updated_at", "2016-01-21 16:32:06.357143"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:32:06.380694"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:32:06.362138"], ["updated_at", "2016-01-21 16:32:06.362138"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:32:06.386633"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:32:06.366899"], ["updated_at", "2016-01-21 16:32:06.366899"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:32:06.394219"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:32:06.396074"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e37057f-b271-4f0b-a76b-6797d3352c60] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.84ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-21 16:32:06.400024"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 4a71da84-c344-4ba5-be1a-7c86dddb83b8) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:32:06.403271"], ["updated_at", "2016-01-21 16:32:06.403271"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:32:06.357143"], ["updated_at", "2016-01-21 16:32:06.357143"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."id" != 7 AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-21 16:32:06.409826"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:32:06.362138"], ["updated_at", "2016-01-21 16:32:06.362138"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."id" != 8 AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-21 16:32:06.415356"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:32:06.366899"], ["updated_at", "2016-01-21 16:32:06.366899"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."id" != 9 AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-21 16:32:06.420981"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:32:06.423065"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a71da84-c344-4ba5-be1a-7c86dddb83b8] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.0ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-21 16:32:06.452033"], ["updated_at", "2016-01-21 16:32:06.452033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 13' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-21 16:32:06.457640"], ["updated_at", "2016-01-21 16:32:06.457640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-21 16:32:06.467134"], ["updated_at", "2016-01-21 16:32:06.467134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:32:06.474476"], ["updated_at", "2016-01-21 16:32:06.474476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-21 16:32:06.504687"], ["updated_at", "2016-01-21 16:32:06.504687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-21 16:32:06.509870"], ["updated_at", "2016-01-21 16:32:06.509870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-21 16:32:06.515517"], ["updated_at", "2016-01-21 16:32:06.515517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:32:06.521414"], ["updated_at", "2016-01-21 16:32:06.521414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 19' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:32:06.524625"], ["updated_at", "2016-01-21 16:32:06.524625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:32:06.532276"], ["updated_at", "2016-01-21 16:32:06.532276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 20' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:32:06.534786"], ["updated_at", "2016-01-21 16:32:06.534786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-21 16:32:06.541067"], ["updated_at", "2016-01-21 16:32:06.541067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-01-21 16:32:06.546793"], ["updated_at", "2016-01-21 16:32:06.546793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-21 16:32:06.553000"], ["updated_at", "2016-01-21 16:32:06.553000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:32:06.682473"], ["updated_at", "2016-01-21 16:32:06.682473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.5ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:32:06.704500"], ["updated_at", "2016-01-21 16:32:06.704500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.9ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-21 16:32:06.708573"], ["updated_at", "2016-01-21 16:32:06.708573"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:32:06.716817"], ["updated_at", "2016-01-21 16:32:06.716817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:32:06.722464"], ["updated_at", "2016-01-21 16:32:06.722464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-21 16:32:06.726432"], ["updated_at", "2016-01-21 16:32:06.726432"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:32:06.728729"], ["updated_at", "2016-01-21 16:32:06.728729"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-21 16:32:06.732265"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-21 16:32:06.747812"], ["updated_at", "2016-01-21 16:32:06.747812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:32:06.752135"], ["updated_at", "2016-01-21 16:32:06.752135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-21 16:32:06.755232"], ["updated_at", "2016-01-21 16:32:06.755232"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:32:06.757472"], ["updated_at", "2016-01-21 16:32:06.757472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:32:06.760221"], ["updated_at", "2016-01-21 16:32:06.760221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:32:06.788213"], ["updated_at", "2016-01-21 16:32:06.788213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-01-21 16:32:06.792036"], ["updated_at", "2016-01-21 16:32:06.792036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) commit transaction  (0.3ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-21 16:32:06.851972"], ["updated_at", "2016-01-21 16:32:06.851972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:32:06.867225"], ["updated_at", "2016-01-21 16:32:06.867225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-21 16:32:06.870634"], ["updated_at", "2016-01-21 16:32:06.870634"]] SQL (0.6ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:32:06.873469"], ["updated_at", "2016-01-21 16:32:06.873469"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.8ms) 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.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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.7ms) 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';  (0.6ms) 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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:33:09.429801"], ["updated_at", "2016-01-21 16:33:09.429801"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-21 16:33:09.544576"], ["updated_at", "2016-01-21 16:33:09.544576"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:09.552943"], ["updated_at", "2016-01-21 16:33:09.552943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:09.555108"], ["updated_at", "2016-01-21 16:33:09.555108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-21 16:33:09.567559"], ["updated_at", "2016-01-21 16:33:09.567559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:33:09.571796"], ["updated_at", "2016-01-21 16:33:09.571796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-21 16:33:09.575741"], ["updated_at", "2016-01-21 16:33:09.575741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:33:09.577965"], ["updated_at", "2016-01-21 16:33:09.577965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-21 16:33:09.580767"], ["updated_at", "2016-01-21 16:33:09.580767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:33:09.582835"], ["updated_at", "2016-01-21 16:33:09.582835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:33:09.586891"], ["updated_at", "2016-01-21 16:33:09.586891"]]  (0.1ms) 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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:33:09.571796"], ["updated_at", "2016-01-21 16:33:09.571796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:33:09.598592"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:33:09.577965"], ["updated_at", "2016-01-21 16:33:09.577965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:33:09.605346"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:33:09.582835"], ["updated_at", "2016-01-21 16:33:09.582835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:33:09.610842"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:33:09.613839"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:33:09.622329"], ["updated_at", "2016-01-21 16:33:09.622329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-21 16:33:09.625297"], ["updated_at", "2016-01-21 16:33:09.625297"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:09.627866"], ["updated_at", "2016-01-21 16:33:09.627866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:09.629557"], ["updated_at", "2016-01-21 16:33:09.629557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-21 16:33:09.632215"], ["updated_at", "2016-01-21 16:33:09.632215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:33:09.634168"], ["updated_at", "2016-01-21 16:33:09.634168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-21 16:33:09.636675"], ["updated_at", "2016-01-21 16:33:09.636675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:33:09.638963"], ["updated_at", "2016-01-21 16:33:09.638963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-21 16:33:09.641774"], ["updated_at", "2016-01-21 16:33:09.641774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:33:09.643676"], ["updated_at", "2016-01-21 16:33:09.643676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:33:09.645431"], ["updated_at", "2016-01-21 16:33:09.645431"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:33:09.634168"], ["updated_at", "2016-01-21 16:33:09.634168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:33:09.652342"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:33:09.638963"], ["updated_at", "2016-01-21 16:33:09.638963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:33:09.658680"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:33:09.643676"], ["updated_at", "2016-01-21 16:33:09.643676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:33:09.664346"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:33:09.666073"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:33:09.675363"], ["updated_at", "2016-01-21 16:33:09.675363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-21 16:33:09.682725"], ["updated_at", "2016-01-21 16:33:09.682725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-21 16:33:09.684992"], ["updated_at", "2016-01-21 16:33:09.684992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-21 16:33:09.687484"], ["updated_at", "2016-01-21 16:33:09.687484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-21 16:33:09.689177"], ["updated_at", "2016-01-21 16:33:09.689177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-21 16:33:09.691497"], ["updated_at", "2016-01-21 16:33:09.691497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-21 16:33:09.692766"], ["updated_at", "2016-01-21 16:33:09.692766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-21 16:33:09.697526"], ["updated_at", "2016-01-21 16:33:09.697526"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:09.699186"], ["updated_at", "2016-01-21 16:33:09.699186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-21 16:33:09.708182"], ["updated_at", "2016-01-21 16:33:09.708182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-21 16:33:09.713418"], ["updated_at", "2016-01-21 16:33:09.713418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-21 16:33:09.717629"], ["updated_at", "2016-01-21 16:33:09.717629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:33:09.726494"], ["updated_at", "2016-01-21 16:33:09.726494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-21 16:33:09.729102"], ["updated_at", "2016-01-21 16:33:09.729102"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:09.730864"], ["updated_at", "2016-01-21 16:33:09.730864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:09.732654"], ["updated_at", "2016-01-21 16:33:09.732654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-21 16:33:09.735216"], ["updated_at", "2016-01-21 16:33:09.735216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:33:09.737168"], ["updated_at", "2016-01-21 16:33:09.737168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-21 16:33:09.741436"], ["updated_at", "2016-01-21 16:33:09.741436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:33:09.743882"], ["updated_at", "2016-01-21 16:33:09.743882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-21 16:33:09.746859"], ["updated_at", "2016-01-21 16:33:09.746859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:33:09.749012"], ["updated_at", "2016-01-21 16:33:09.749012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-21 16:33:09.751633"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 5cc87f5b-8539-4e3a-b008-3505c66c769d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:33:09.758169"], ["updated_at", "2016-01-21 16:33:09.758169"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:33:09.737168"], ["updated_at", "2016-01-21 16:33:09.737168"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:33:09.766268"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:33:09.743882"], ["updated_at", "2016-01-21 16:33:09.743882"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:33:09.774077"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:33:09.749012"], ["updated_at", "2016-01-21 16:33:09.749012"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:33:09.780206"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:33:09.782029"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5cc87f5b-8539-4e3a-b008-3505c66c769d] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.05ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:33:09.791739"], ["updated_at", "2016-01-21 16:33:09.791739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-21 16:33:09.794294"], ["updated_at", "2016-01-21 16:33:09.794294"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:09.796021"], ["updated_at", "2016-01-21 16:33:09.796021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:09.797371"], ["updated_at", "2016-01-21 16:33:09.797371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-21 16:33:09.800530"], ["updated_at", "2016-01-21 16:33:09.800530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-21 16:33:09.802784"], ["updated_at", "2016-01-21 16:33:09.802784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-21 16:33:09.805352"], ["updated_at", "2016-01-21 16:33:09.805352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-21 16:33:09.807216"], ["updated_at", "2016-01-21 16:33:09.807216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-21 16:33:09.809777"], ["updated_at", "2016-01-21 16:33:09.809777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-21 16:33:09.811593"], ["updated_at", "2016-01-21 16:33:09.811593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-21 16:33:09.814115"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ca07b2e7-33d5-4d53-a597-211e4ca37814) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:33:09.817347"], ["updated_at", "2016-01-21 16:33:09.817347"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:33:09.802784"], ["updated_at", "2016-01-21 16:33:09.802784"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:33:09.825021"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:33:09.807216"], ["updated_at", "2016-01-21 16:33:09.807216"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:33:09.831423"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:33:09.811593"], ["updated_at", "2016-01-21 16:33:09.811593"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-21 16:33:09.837308"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.4ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:33:09.841457"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ca07b2e7-33d5-4d53-a597-211e4ca37814] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.72ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-21 16:33:09.846114"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 0216f4c6-9c56-4244-a104-7213b7c696cd) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-21 16:33:09.849250"], ["updated_at", "2016-01-21 16:33:09.849250"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:33:09.802784"], ["updated_at", "2016-01-21 16:33:09.802784"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."id" != 7 AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-21 16:33:09.856559"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-21 16:33:09.807216"], ["updated_at", "2016-01-21 16:33:09.807216"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."id" != 8 AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-21 16:33:09.862173"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-21 16:33:09.811593"], ["updated_at", "2016-01-21 16:33:09.811593"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."id" != 9 AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-21 16:33:09.867171"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-21 16:33:09.868876"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0216f4c6-9c56-4244-a104-7213b7c696cd] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.79ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-21 16:33:09.880101"], ["updated_at", "2016-01-21 16:33:09.880101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 13' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-21 16:33:09.886315"], ["updated_at", "2016-01-21 16:33:09.886315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-21 16:33:09.895496"], ["updated_at", "2016-01-21 16:33:09.895496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:33:09.902715"], ["updated_at", "2016-01-21 16:33:09.902715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-21 16:33:09.920993"], ["updated_at", "2016-01-21 16:33:09.920993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-21 16:33:09.927387"], ["updated_at", "2016-01-21 16:33:09.927387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-21 16:33:09.932318"], ["updated_at", "2016-01-21 16:33:09.932318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:33:09.938311"], ["updated_at", "2016-01-21 16:33:09.938311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 19' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:33:09.940971"], ["updated_at", "2016-01-21 16:33:09.940971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-21 16:33:09.959421"], ["updated_at", "2016-01-21 16:33:09.959421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 20' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-21 16:33:09.962475"], ["updated_at", "2016-01-21 16:33:09.962475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-21 16:33:09.969383"], ["updated_at", "2016-01-21 16:33:09.969383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-01-21 16:33:09.975379"], ["updated_at", "2016-01-21 16:33:09.975379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-21 16:33:09.981958"], ["updated_at", "2016-01-21 16:33:09.981958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:33:10.111071"], ["updated_at", "2016-01-21 16:33:10.111071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:33:10.130482"], ["updated_at", "2016-01-21 16:33:10.130482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-21 16:33:10.134848"], ["updated_at", "2016-01-21 16:33:10.134848"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:10.137464"], ["updated_at", "2016-01-21 16:33:10.137464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:33:10.148575"], ["updated_at", "2016-01-21 16:33:10.148575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-21 16:33:10.152253"], ["updated_at", "2016-01-21 16:33:10.152253"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:10.154276"], ["updated_at", "2016-01-21 16:33:10.154276"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.5ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-21 16:33:10.160878"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-21 16:33:10.176293"], ["updated_at", "2016-01-21 16:33:10.176293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:33:10.180632"], ["updated_at", "2016-01-21 16:33:10.180632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-21 16:33:10.183639"], ["updated_at", "2016-01-21 16:33:10.183639"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:10.186572"], ["updated_at", "2016-01-21 16:33:10.186572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:10.188597"], ["updated_at", "2016-01-21 16:33:10.188597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:33:10.216202"], ["updated_at", "2016-01-21 16:33:10.216202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-01-21 16:33:10.220296"], ["updated_at", "2016-01-21 16:33:10.220296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.3ms) begin transaction  (0.3ms) commit transaction  (0.2ms) begin transaction  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-21 16:33:10.283837"], ["updated_at", "2016-01-21 16:33:10.283837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-21 16:33:10.297183"], ["updated_at", "2016-01-21 16:33:10.297183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-21 16:33:10.299950"], ["updated_at", "2016-01-21 16:33:10.299950"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-21 16:33:10.302861"], ["updated_at", "2016-01-21 16:33:10.302861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.3ms) DELETE FROM "pulitzer_content_element_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (1.6ms) DELETE FROM "pulitzer_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts';  (1.2ms) DELETE FROM "pulitzer_tags";  (0.2ms) 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.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.1ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (1.2ms) 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';  (0.9ms) DELETE FROM "pulitzer_content_elements";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements';  (1.1ms) DELETE FROM "pulitzer_post_tags";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (1.2ms) 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.0ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:32:01.331568"], ["updated_at", "2016-01-25 16:32:01.331568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-25 16:32:01.455497"], ["updated_at", "2016-01-25 16:32:01.455497"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:01.463163"], ["updated_at", "2016-01-25 16:32:01.463163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:01.465652"], ["updated_at", "2016-01-25 16:32:01.465652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-25 16:32:01.477850"], ["updated_at", "2016-01-25 16:32:01.477850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:32:01.480976"], ["updated_at", "2016-01-25 16:32:01.480976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-25 16:32:01.484648"], ["updated_at", "2016-01-25 16:32:01.484648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:32:01.486923"], ["updated_at", "2016-01-25 16:32:01.486923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-25 16:32:01.489569"], ["updated_at", "2016-01-25 16:32:01.489569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:32:01.491421"], ["updated_at", "2016-01-25 16:32:01.491421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:32:01.496441"], ["updated_at", "2016-01-25 16:32:01.496441"]]  (0.1ms) 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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:32:01.480976"], ["updated_at", "2016-01-25 16:32:01.480976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:32:01.506103"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:32:01.486923"], ["updated_at", "2016-01-25 16:32:01.486923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:32:01.514036"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:32:01.491421"], ["updated_at", "2016-01-25 16:32:01.491421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:32:01.520267"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:32:01.523924"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:32:01.531542"], ["updated_at", "2016-01-25 16:32:01.531542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-25 16:32:01.534619"], ["updated_at", "2016-01-25 16:32:01.534619"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:01.537093"], ["updated_at", "2016-01-25 16:32:01.537093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:01.539009"], ["updated_at", "2016-01-25 16:32:01.539009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-25 16:32:01.541861"], ["updated_at", "2016-01-25 16:32:01.541861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:32:01.543952"], ["updated_at", "2016-01-25 16:32:01.543952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-25 16:32:01.546578"], ["updated_at", "2016-01-25 16:32:01.546578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:32:01.548582"], ["updated_at", "2016-01-25 16:32:01.548582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-25 16:32:01.551358"], ["updated_at", "2016-01-25 16:32:01.551358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:32:01.554663"], ["updated_at", "2016-01-25 16:32:01.554663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:32:01.556936"], ["updated_at", "2016-01-25 16:32:01.556936"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:32:01.543952"], ["updated_at", "2016-01-25 16:32:01.543952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:32:01.565304"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:32:01.548582"], ["updated_at", "2016-01-25 16:32:01.548582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:32:01.572135"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:32:01.554663"], ["updated_at", "2016-01-25 16:32:01.554663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:32:01.577330"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:32:01.579079"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:32:01.587663"], ["updated_at", "2016-01-25 16:32:01.587663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-25 16:32:01.596740"], ["updated_at", "2016-01-25 16:32:01.596740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-25 16:32:01.599417"], ["updated_at", "2016-01-25 16:32:01.599417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-25 16:32:01.602093"], ["updated_at", "2016-01-25 16:32:01.602093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-25 16:32:01.603745"], ["updated_at", "2016-01-25 16:32:01.603745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-25 16:32:01.606079"], ["updated_at", "2016-01-25 16:32:01.606079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-25 16:32:01.607568"], ["updated_at", "2016-01-25 16:32:01.607568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-25 16:32:01.612661"], ["updated_at", "2016-01-25 16:32:01.612661"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:01.614353"], ["updated_at", "2016-01-25 16:32:01.614353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.2ms) 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 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-25 16:32:01.624271"], ["updated_at", "2016-01-25 16:32:01.624271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-25 16:32:01.629290"], ["updated_at", "2016-01-25 16:32:01.629290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-25 16:32:01.633661"], ["updated_at", "2016-01-25 16:32:01.633661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:32:01.641676"], ["updated_at", "2016-01-25 16:32:01.641676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-25 16:32:01.644556"], ["updated_at", "2016-01-25 16:32:01.644556"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:01.646613"], ["updated_at", "2016-01-25 16:32:01.646613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:01.648454"], ["updated_at", "2016-01-25 16:32:01.648454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-25 16:32:01.651930"], ["updated_at", "2016-01-25 16:32:01.651930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:32:01.655376"], ["updated_at", "2016-01-25 16:32:01.655376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-25 16:32:01.658699"], ["updated_at", "2016-01-25 16:32:01.658699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:32:01.660723"], ["updated_at", "2016-01-25 16:32:01.660723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-25 16:32:01.663562"], ["updated_at", "2016-01-25 16:32:01.663562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:32:01.665793"], ["updated_at", "2016-01-25 16:32:01.665793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:32:01.668207"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: e2741775-6bda-4b7d-9378-517a595fed8c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:32:01.675084"], ["updated_at", "2016-01-25 16:32:01.675084"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:32:01.655376"], ["updated_at", "2016-01-25 16:32:01.655376"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:32:01.682592"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:32:01.660723"], ["updated_at", "2016-01-25 16:32:01.660723"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:32:01.689018"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:32:01.665793"], ["updated_at", "2016-01-25 16:32:01.665793"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:32:01.694172"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:32:01.695942"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e2741775-6bda-4b7d-9378-517a595fed8c] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.17ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:32:01.705343"], ["updated_at", "2016-01-25 16:32:01.705343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-25 16:32:01.707903"], ["updated_at", "2016-01-25 16:32:01.707903"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:01.709706"], ["updated_at", "2016-01-25 16:32:01.709706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:01.711072"], ["updated_at", "2016-01-25 16:32:01.711072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-25 16:32:01.714309"], ["updated_at", "2016-01-25 16:32:01.714309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:32:01.716370"], ["updated_at", "2016-01-25 16:32:01.716370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-25 16:32:01.719560"], ["updated_at", "2016-01-25 16:32:01.719560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:32:01.721619"], ["updated_at", "2016-01-25 16:32:01.721619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-25 16:32:01.724616"], ["updated_at", "2016-01-25 16:32:01.724616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:32:01.726833"], ["updated_at", "2016-01-25 16:32:01.726833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:32:01.729271"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: cf4af7b3-e945-43f3-b563-496f455479a6) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:32:01.732527"], ["updated_at", "2016-01-25 16:32:01.732527"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:32:01.716370"], ["updated_at", "2016-01-25 16:32:01.716370"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:32:01.740070"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:32:01.721619"], ["updated_at", "2016-01-25 16:32:01.721619"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:32:01.745872"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:32:01.726833"], ["updated_at", "2016-01-25 16:32:01.726833"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:32:01.752428"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:32:01.756059"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf4af7b3-e945-43f3-b563-496f455479a6] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.42ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-25 16:32:01.760606"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6d85d10e-9468-4b71-b93c-1020a3b9ade9) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:32:01.763423"], ["updated_at", "2016-01-25 16:32:01.763423"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:32:01.716370"], ["updated_at", "2016-01-25 16:32:01.716370"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."id" != 7 AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:32:01.769985"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:32:01.721619"], ["updated_at", "2016-01-25 16:32:01.721619"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."id" != 8 AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:32:01.776085"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:32:01.726833"], ["updated_at", "2016-01-25 16:32:01.726833"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."id" != 9 AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:32:01.782488"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:32:01.784832"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d85d10e-9468-4b71-b93c-1020a3b9ade9] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.16ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-25 16:32:01.797992"], ["updated_at", "2016-01-25 16:32:01.797992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 13' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-25 16:32:01.803573"], ["updated_at", "2016-01-25 16:32:01.803573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-25 16:32:01.823274"], ["updated_at", "2016-01-25 16:32:01.823274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:32:01.832678"], ["updated_at", "2016-01-25 16:32:01.832678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-25 16:32:01.853394"], ["updated_at", "2016-01-25 16:32:01.853394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-25 16:32:01.858649"], ["updated_at", "2016-01-25 16:32:01.858649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-25 16:32:01.864447"], ["updated_at", "2016-01-25 16:32:01.864447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:32:01.871334"], ["updated_at", "2016-01-25 16:32:01.871334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 19' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:32:01.873891"], ["updated_at", "2016-01-25 16:32:01.873891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:32:01.881513"], ["updated_at", "2016-01-25 16:32:01.881513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 20' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:32:01.883923"], ["updated_at", "2016-01-25 16:32:01.883923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-25 16:32:01.890711"], ["updated_at", "2016-01-25 16:32:01.890711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-01-25 16:32:01.895902"], ["updated_at", "2016-01-25 16:32:01.895902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-25 16:32:01.902982"], ["updated_at", "2016-01-25 16:32:01.902982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:32:02.083815"], ["updated_at", "2016-01-25 16:32:02.083815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:32:02.098003"], ["updated_at", "2016-01-25 16:32:02.098003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-25 16:32:02.100855"], ["updated_at", "2016-01-25 16:32:02.100855"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:02.104532"], ["updated_at", "2016-01-25 16:32:02.104532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:32:02.110271"], ["updated_at", "2016-01-25 16:32:02.110271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-25 16:32:02.113709"], ["updated_at", "2016-01-25 16:32:02.113709"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:02.117040"], ["updated_at", "2016-01-25 16:32:02.117040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-25 16:32:02.121843"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-25 16:32:02.134915"], ["updated_at", "2016-01-25 16:32:02.134915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:32:02.139493"], ["updated_at", "2016-01-25 16:32:02.139493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-25 16:32:02.142722"], ["updated_at", "2016-01-25 16:32:02.142722"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:02.144687"], ["updated_at", "2016-01-25 16:32:02.144687"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:02.146406"], ["updated_at", "2016-01-25 16:32:02.146406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:32:02.179042"], ["updated_at", "2016-01-25 16:32:02.179042"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-01-25 16:32:02.184353"], ["updated_at", "2016-01-25 16:32:02.184353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-25 16:32:02.245461"], ["updated_at", "2016-01-25 16:32:02.245461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:32:02.263856"], ["updated_at", "2016-01-25 16:32:02.263856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-25 16:32:02.267256"], ["updated_at", "2016-01-25 16:32:02.267256"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:32:02.269473"], ["updated_at", "2016-01-25 16:32:02.269473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.7ms) 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.7ms) 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 "search_locations";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (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.8ms) 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.8ms) 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';  (0.8ms) 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.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:34:10.065906"], ["updated_at", "2016-01-25 16:34:10.065906"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-25 16:34:10.186048"], ["updated_at", "2016-01-25 16:34:10.186048"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.195403"], ["updated_at", "2016-01-25 16:34:10.195403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.197970"], ["updated_at", "2016-01-25 16:34:10.197970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-25 16:34:10.211253"], ["updated_at", "2016-01-25 16:34:10.211253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:34:10.214501"], ["updated_at", "2016-01-25 16:34:10.214501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-25 16:34:10.217627"], ["updated_at", "2016-01-25 16:34:10.217627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:34:10.219537"], ["updated_at", "2016-01-25 16:34:10.219537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-25 16:34:10.222110"], ["updated_at", "2016-01-25 16:34:10.222110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:34:10.224460"], ["updated_at", "2016-01-25 16:34:10.224460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:34:10.229027"], ["updated_at", "2016-01-25 16:34:10.229027"]]  (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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:34:10.214501"], ["updated_at", "2016-01-25 16:34:10.214501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:34:10.238152"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:34:10.219537"], ["updated_at", "2016-01-25 16:34:10.219537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:34:10.244614"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:34:10.224460"], ["updated_at", "2016-01-25 16:34:10.224460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:34:10.250023"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:34:10.253071"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:34:10.261370"], ["updated_at", "2016-01-25 16:34:10.261370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-25 16:34:10.264310"], ["updated_at", "2016-01-25 16:34:10.264310"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.266727"], ["updated_at", "2016-01-25 16:34:10.266727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.268427"], ["updated_at", "2016-01-25 16:34:10.268427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-25 16:34:10.271609"], ["updated_at", "2016-01-25 16:34:10.271609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:34:10.274288"], ["updated_at", "2016-01-25 16:34:10.274288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-25 16:34:10.277086"], ["updated_at", "2016-01-25 16:34:10.277086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:34:10.278919"], ["updated_at", "2016-01-25 16:34:10.278919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-25 16:34:10.281456"], ["updated_at", "2016-01-25 16:34:10.281456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:34:10.283338"], ["updated_at", "2016-01-25 16:34:10.283338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:34:10.285683"], ["updated_at", "2016-01-25 16:34:10.285683"]]  (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]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:34:10.274288"], ["updated_at", "2016-01-25 16:34:10.274288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 4' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:34:10.293376"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:34:10.278919"], ["updated_at", "2016-01-25 16:34:10.278919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 5' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:34:10.299493"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:34:10.283338"], ["updated_at", "2016-01-25 16:34:10.283338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 6' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:34:10.306424"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:34:10.309006"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:34:10.316147"], ["updated_at", "2016-01-25 16:34:10.316147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-25 16:34:10.323533"], ["updated_at", "2016-01-25 16:34:10.323533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-25 16:34:10.326470"], ["updated_at", "2016-01-25 16:34:10.326470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-25 16:34:10.329100"], ["updated_at", "2016-01-25 16:34:10.329100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-25 16:34:10.330675"], ["updated_at", "2016-01-25 16:34:10.330675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-25 16:34:10.333349"], ["updated_at", "2016-01-25 16:34:10.333349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-25 16:34:10.334697"], ["updated_at", "2016-01-25 16:34:10.334697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-25 16:34:10.339149"], ["updated_at", "2016-01-25 16:34:10.339149"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.341208"], ["updated_at", "2016-01-25 16:34:10.341208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 1' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-25 16:34:10.349410"], ["updated_at", "2016-01-25 16:34:10.349410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 2' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-25 16:34:10.355943"], ["updated_at", "2016-01-25 16:34:10.355943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 3' AND "pulitzer_content_elements"."version_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-25 16:34:10.360810"], ["updated_at", "2016-01-25 16:34:10.360810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:34:10.368272"], ["updated_at", "2016-01-25 16:34:10.368272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-25 16:34:10.370886"], ["updated_at", "2016-01-25 16:34:10.370886"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.372834"], ["updated_at", "2016-01-25 16:34:10.372834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.374249"], ["updated_at", "2016-01-25 16:34:10.374249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-25 16:34:10.377564"], ["updated_at", "2016-01-25 16:34:10.377564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:34:10.379691"], ["updated_at", "2016-01-25 16:34:10.379691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-25 16:34:10.382301"], ["updated_at", "2016-01-25 16:34:10.382301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:34:10.384250"], ["updated_at", "2016-01-25 16:34:10.384250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-25 16:34:10.387016"], ["updated_at", "2016-01-25 16:34:10.387016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:34:10.389591"], ["updated_at", "2016-01-25 16:34:10.389591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:34:10.391870"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: fd9c2481-31bc-4978-9f6d-8619f71ef5b6) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:34:10.397995"], ["updated_at", "2016-01-25 16:34:10.397995"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:34:10.379691"], ["updated_at", "2016-01-25 16:34:10.379691"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Pulitzer::ContentElement Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 7' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:34:10.406736"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:34:10.384250"], ["updated_at", "2016-01-25 16:34:10.384250"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 8' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:34:10.412803"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:34:10.389591"], ["updated_at", "2016-01-25 16:34:10.389591"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 9' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:34:10.417994"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:34:10.419765"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fd9c2481-31bc-4978-9f6d-8619f71ef5b6] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.56ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:34:10.429021"], ["updated_at", "2016-01-25 16:34:10.429021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-25 16:34:10.431548"], ["updated_at", "2016-01-25 16:34:10.431548"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.433291"], ["updated_at", "2016-01-25 16:34:10.433291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.435687"], ["updated_at", "2016-01-25 16:34:10.435687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-25 16:34:10.439020"], ["updated_at", "2016-01-25 16:34:10.439020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:34:10.441233"], ["updated_at", "2016-01-25 16:34:10.441233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-25 16:34:10.443823"], ["updated_at", "2016-01-25 16:34:10.443823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:34:10.445724"], ["updated_at", "2016-01-25 16:34:10.445724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-25 16:34:10.448522"], ["updated_at", "2016-01-25 16:34:10.448522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:34:10.450394"], ["updated_at", "2016-01-25 16:34:10.450394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:34:10.452495"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:34:10.455503"], ["updated_at", "2016-01-25 16:34:10.455503"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Pulitzer::ContentElement Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:34:10.441233"], ["updated_at", "2016-01-25 16:34:10.441233"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."id" != 4 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:34:10.464232"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:34:10.445724"], ["updated_at", "2016-01-25 16:34:10.445724"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."id" != 5 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:34:10.469578"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:34:10.450394"], ["updated_at", "2016-01-25 16:34:10.450394"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."id" != 6 AND "pulitzer_content_elements"."version_id" = 3) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:34:10.476703"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:34:10.478637"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7f9ae3d0-b268-46ed-acdd-5ab7ab94b0a7] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.5ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-25 16:34:10.482740"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c11c382c-577b-4522-b943-b120f4ae14e7) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:34:10.486006"], ["updated_at", "2016-01-25 16:34:10.486006"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:34:10.441233"], ["updated_at", "2016-01-25 16:34:10.441233"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 10' AND "pulitzer_content_elements"."id" != 7 AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:34:10.493156"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:34:10.445724"], ["updated_at", "2016-01-25 16:34:10.445724"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 11' AND "pulitzer_content_elements"."id" != 8 AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:34:10.498586"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:34:10.450394"], ["updated_at", "2016-01-25 16:34:10.450394"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 12' AND "pulitzer_content_elements"."id" != 9 AND "pulitzer_content_elements"."version_id" = 4) LIMIT 1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:34:10.503678"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:34:10.505626"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c11c382c-577b-4522-b943-b120f4ae14e7] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.84ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-25 16:34:10.518118"], ["updated_at", "2016-01-25 16:34:10.518118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 13' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-25 16:34:10.524850"], ["updated_at", "2016-01-25 16:34:10.524850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" IS NULL AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-25 16:34:10.533776"], ["updated_at", "2016-01-25 16:34:10.533776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "a"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:34:10.540420"], ["updated_at", "2016-01-25 16:34:10.540420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'A' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'a' AND "pulitzer_content_elements"."version_id" = 0) LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-25 16:34:10.558747"], ["updated_at", "2016-01-25 16:34:10.558747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-25 16:34:10.564501"], ["updated_at", "2016-01-25 16:34:10.564501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-25 16:34:10.569533"], ["updated_at", "2016-01-25 16:34:10.569533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:34:10.575954"], ["updated_at", "2016-01-25 16:34:10.575954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 19' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:34:10.578566"], ["updated_at", "2016-01-25 16:34:10.578566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:34:10.596329"], ["updated_at", "2016-01-25 16:34:10.596329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElement Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_elements" WHERE ("pulitzer_content_elements"."label" = 'Slide 1 content element 20' AND "pulitzer_content_elements"."version_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:34:10.599068"], ["updated_at", "2016-01-25 16:34:10.599068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-25 16:34:10.605652"], ["updated_at", "2016-01-25 16:34:10.605652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-01-25 16:34:10.612155"], ["updated_at", "2016-01-25 16:34:10.612155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-25 16:34:10.618376"], ["updated_at", "2016-01-25 16:34:10.618376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:34:10.746027"], ["updated_at", "2016-01-25 16:34:10.746027"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:34:10.764530"], ["updated_at", "2016-01-25 16:34:10.764530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-25 16:34:10.768765"], ["updated_at", "2016-01-25 16:34:10.768765"]] SQL (2.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.772459"], ["updated_at", "2016-01-25 16:34:10.772459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:34:10.781555"], ["updated_at", "2016-01-25 16:34:10.781555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-25 16:34:10.784793"], ["updated_at", "2016-01-25 16:34:10.784793"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.787187"], ["updated_at", "2016-01-25 16:34:10.787187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.6ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-25 16:34:10.796124"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-25 16:34:10.814050"], ["updated_at", "2016-01-25 16:34:10.814050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:34:10.819423"], ["updated_at", "2016-01-25 16:34:10.819423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-25 16:34:10.822839"], ["updated_at", "2016-01-25 16:34:10.822839"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.824746"], ["updated_at", "2016-01-25 16:34:10.824746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.826711"], ["updated_at", "2016-01-25 16:34:10.826711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:34:10.854526"], ["updated_at", "2016-01-25 16:34:10.854526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-01-25 16:34:10.858275"], ["updated_at", "2016-01-25 16:34:10.858275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.5ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-25 16:34:10.917610"], ["updated_at", "2016-01-25 16:34:10.917610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:34:10.933453"], ["updated_at", "2016-01-25 16:34:10.933453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-25 16:34:10.936875"], ["updated_at", "2016-01-25 16:34:10.936875"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:34:10.941113"], ["updated_at", "2016-01-25 16:34:10.941113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0)  (0.9ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar)  (0.8ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)   (0.8ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)  (0.5ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (0.8ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151118031237')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150901153531') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_post_types" already exists: CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_post_types" already exists: CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_pulitzer_posts_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_posts_on_slug' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.2ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0)  (0.8ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar)  (0.8ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)   (0.8ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (0.9ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.7ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151118031237')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150901153531') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerContentElementTypes (20150618225402)  (0.1ms) begin transaction  (0.1ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_content_element_types" already exists: CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPosts (20150619204615)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_posts" already exists: CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerContentElements (20150619204708)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "post_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_content_elements" already exists: CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "post_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerTags (20150619213436)  (0.1ms) begin transaction  (0.1ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_tags" already exists: CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTags (20150619213457)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_post_tags" already exists: CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTags (20150619213457)  (0.1ms) begin transaction  (0.1ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_post_tags" already exists: CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypeContentElementTypes (20150619215914)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_post_type_content_element_types" already exists: CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddPluralAndTemplateToPulitzerPostTypes (20150629195832)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "pulitzer_post_types" ADD "plural" boolean SQLite3::SQLException: duplicate column name: plural: ALTER TABLE "pulitzer_post_types" ADD "plural" boolean  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddPulitzerContentElementTypes (20150702150819)  (0.1ms) begin transaction Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", "2016-01-25 16:52:21.942501"], ["updated_at", "2016-01-25 16:52:21.942501"]] Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-25 16:52:21.944531"], ["updated_at", "2016-01-25 16:52:21.944531"]] Pulitzer::ContentElementType Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:52:21.945715"], ["updated_at", "2016-01-25 16:52:21.945715"]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150702150819"]]  (0.8ms) commit transaction Migrating to AddSlugToPulitzerPosts (20150724150230)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "pulitzer_posts" ADD "slug" varchar SQLite3::SQLException: duplicate column name: slug: ALTER TABLE "pulitzer_posts" ADD "slug" varchar  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddSlugToPulitzerPosts (20150724150230)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "pulitzer_posts" ADD "slug" varchar SQLite3::SQLException: duplicate column name: slug: ALTER TABLE "pulitzer_posts" ADD "slug" varchar  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to ChangeLabelTypeFromPulitzerPostTags (20150902212741)  (0.1ms) begin transaction  (0.7ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_post_tags"  (0.2ms) DROP TABLE "pulitzer_post_tags"  (0.1ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "apulitzer_post_tags"  (0.3ms) DROP TABLE "apulitzer_post_tags" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150902212741"]]  (1.2ms) commit transaction Migrating to AddTextEditorToPulitzerPostTypeContentElementTypes (20151026180630)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "pulitzer_post_type_content_element_types" ADD "text_editor" varchar SQLite3::SQLException: duplicate column name: text_editor: ALTER TABLE "pulitzer_post_type_content_element_types" ADD "text_editor" varchar  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddTextEditorToPulitzerPostTypeContentElementTypes (20151026180630)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "pulitzer_post_type_content_element_types" ADD "text_editor" varchar SQLite3::SQLException: duplicate column name: text_editor: ALTER TABLE "pulitzer_post_type_content_element_types" ADD "text_editor" varchar  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddTextEditorToPulitzerPostTypeContentElementTypes (20151026180630)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "pulitzer_post_type_content_element_types" ADD "text_editor" varchar SQLite3::SQLException: duplicate column name: text_editor: ALTER TABLE "pulitzer_post_type_content_element_types" ADD "text_editor" varchar  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerVersions (20151029194354)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_versions" already exists: CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to ChangePostElementsToVersions (20151029220558)  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddPostTypeContentElementAttributesToContentElements (20151113183344)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "text_editor" varchar SQLite3::SQLException: duplicate column name: text_editor: ALTER TABLE "pulitzer_content_elements" ADD "text_editor" varchar  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to ChangeTemplateToPulitzerPostTypes (20151116162508)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "apulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)   (0.1ms) SELECT * FROM "pulitzer_post_types"  (0.2ms) DROP TABLE "pulitzer_post_types"  (0.1ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)  (0.1ms) SELECT * FROM "apulitzer_post_types"  (0.4ms) DROP TABLE "apulitzer_post_types"  (0.2ms) ALTER TABLE "pulitzer_post_types" ADD "kind" integer DEFAULT 0 SQLite3::SQLException: duplicate column name: kind: ALTER TABLE "pulitzer_post_types" ADD "kind" integer DEFAULT 0  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddErrorsToVersion (20160122204201)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "pulitzer_versions" ADD "cloning_errors" jsonb SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160122204201"]]  (1.3ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_pulitzer_posts_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_posts_on_slug' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) 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.9ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (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';  (1.0ms) 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_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_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.7ms) 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.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:55:56.689709"], ["updated_at", "2016-01-25 16:55:56.689709"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-25 16:55:56.812202"], ["updated_at", "2016-01-25 16:55:56.812202"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:56.820699"], ["updated_at", "2016-01-25 16:55:56.820699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:56.823057"], ["updated_at", "2016-01-25 16:55:56.823057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-25 16:55:56.835846"], ["updated_at", "2016-01-25 16:55:56.835846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:55:56.838292"], ["updated_at", "2016-01-25 16:55:56.838292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-25 16:55:56.841216"], ["updated_at", "2016-01-25 16:55:56.841216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:55:56.843336"], ["updated_at", "2016-01-25 16:55:56.843336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-25 16:55:56.846449"], ["updated_at", "2016-01-25 16:55:56.846449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:55:56.847906"], ["updated_at", "2016-01-25 16:55:56.847906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]] Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:55:56.858998"], ["updated_at", "2016-01-25 16:55:56.858998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-25 16:55:56.861872"], ["updated_at", "2016-01-25 16:55:56.861872"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:56.863891"], ["updated_at", "2016-01-25 16:55:56.863891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:56.865865"], ["updated_at", "2016-01-25 16:55:56.865865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-25 16:55:56.868775"], ["updated_at", "2016-01-25 16:55:56.868775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:55:56.870261"], ["updated_at", "2016-01-25 16:55:56.870261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-25 16:55:56.873074"], ["updated_at", "2016-01-25 16:55:56.873074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:55:56.875493"], ["updated_at", "2016-01-25 16:55:56.875493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-25 16:55:56.878925"], ["updated_at", "2016-01-25 16:55:56.878925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:55:56.880470"], ["updated_at", "2016-01-25 16:55:56.880470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:55:56.887101"], ["updated_at", "2016-01-25 16:55:56.887101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-25 16:55:56.894554"], ["updated_at", "2016-01-25 16:55:56.894554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-25 16:55:56.897045"], ["updated_at", "2016-01-25 16:55:56.897045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-25 16:55:56.899562"], ["updated_at", "2016-01-25 16:55:56.899562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-25 16:55:56.901122"], ["updated_at", "2016-01-25 16:55:56.901122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-25 16:55:56.903618"], ["updated_at", "2016-01-25 16:55:56.903618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-25 16:55:56.904851"], ["updated_at", "2016-01-25 16:55:56.904851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-25 16:55:56.909407"], ["updated_at", "2016-01-25 16:55:56.909407"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:56.911054"], ["updated_at", "2016-01-25 16:55:56.911054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-25 16:55:56.921264"], ["updated_at", "2016-01-25 16:55:56.921264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-25 16:55:56.927688"], ["updated_at", "2016-01-25 16:55:56.927688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-25 16:55:56.932321"], ["updated_at", "2016-01-25 16:55:56.932321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:55:56.939978"], ["updated_at", "2016-01-25 16:55:56.939978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-25 16:55:56.942668"], ["updated_at", "2016-01-25 16:55:56.942668"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:56.944600"], ["updated_at", "2016-01-25 16:55:56.944600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:56.947136"], ["updated_at", "2016-01-25 16:55:56.947136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-25 16:55:56.950390"], ["updated_at", "2016-01-25 16:55:56.950390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:55:56.951963"], ["updated_at", "2016-01-25 16:55:56.951963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-25 16:55:56.954547"], ["updated_at", "2016-01-25 16:55:56.954547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:55:56.956255"], ["updated_at", "2016-01-25 16:55:56.956255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-25 16:55:56.959655"], ["updated_at", "2016-01-25 16:55:56.959655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:55:56.961308"], ["updated_at", "2016-01-25 16:55:56.961308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:55:56.963513"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:55:56.965802"], ["updated_at", "2016-01-25 16:55:56.965802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: de1e3697-6174-4d23-bc00-cfbe993a9ce0) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:55:56.951963"], ["updated_at", "2016-01-25 16:55:56.951963"]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:55:56.978838"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:55:56.956255"], ["updated_at", "2016-01-25 16:55:56.956255"]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:55:56.984549"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:55:56.961308"], ["updated_at", "2016-01-25 16:55:56.961308"]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:55:56.989168"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:55:56.993118"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de1e3697-6174-4d23-bc00-cfbe993a9ce0] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.52ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:55:57.006521"], ["updated_at", "2016-01-25 16:55:57.006521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-25 16:55:57.009782"], ["updated_at", "2016-01-25 16:55:57.009782"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:57.012017"], ["updated_at", "2016-01-25 16:55:57.012017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:57.013765"], ["updated_at", "2016-01-25 16:55:57.013765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-25 16:55:57.017179"], ["updated_at", "2016-01-25 16:55:57.017179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:55:57.018795"], ["updated_at", "2016-01-25 16:55:57.018795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-25 16:55:57.021345"], ["updated_at", "2016-01-25 16:55:57.021345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:55:57.022806"], ["updated_at", "2016-01-25 16:55:57.022806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-25 16:55:57.025504"], ["updated_at", "2016-01-25 16:55:57.025504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:55:57.026937"], ["updated_at", "2016-01-25 16:55:57.026937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:55:57.029266"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:55:57.030960"], ["updated_at", "2016-01-25 16:55:57.030960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: bd9098ae-6d06-401b-9505-d904283d4644) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:55:57.018795"], ["updated_at", "2016-01-25 16:55:57.018795"]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:55:57.039964"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:55:57.022806"], ["updated_at", "2016-01-25 16:55:57.022806"]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:55:57.044916"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:55:57.026937"], ["updated_at", "2016-01-25 16:55:57.026937"]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:55:57.049372"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:55:57.051381"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd9098ae-6d06-401b-9505-d904283d4644] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.67ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-25 16:55:57.059296"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:55:57.061316"], ["updated_at", "2016-01-25 16:55:57.061316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2f557c96-aa8a-4a13-872d-ec4c43f44dc1) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:55:57.018795"], ["updated_at", "2016-01-25 16:55:57.018795"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:55:57.070014"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:55:57.022806"], ["updated_at", "2016-01-25 16:55:57.022806"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:55:57.076011"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:55:57.026937"], ["updated_at", "2016-01-25 16:55:57.026937"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:55:57.081732"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:55:57.083788"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f557c96-aa8a-4a13-872d-ec4c43f44dc1] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.91ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-25 16:55:57.102446"], ["updated_at", "2016-01-25 16:55:57.102446"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-25 16:55:57.109279"], ["updated_at", "2016-01-25 16:55:57.109279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-25 16:55:57.137136"], ["updated_at", "2016-01-25 16:55:57.137136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-25 16:55:57.147878"], ["updated_at", "2016-01-25 16:55:57.147878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-25 16:55:57.152800"], ["updated_at", "2016-01-25 16:55:57.152800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-25 16:55:57.158769"], ["updated_at", "2016-01-25 16:55:57.158769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:55:57.164454"], ["updated_at", "2016-01-25 16:55:57.164454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:55:57.166453"], ["updated_at", "2016-01-25 16:55:57.166453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:55:57.172687"], ["updated_at", "2016-01-25 16:55:57.172687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:55:57.174508"], ["updated_at", "2016-01-25 16:55:57.174508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-25 16:55:57.180898"], ["updated_at", "2016-01-25 16:55:57.180898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-01-25 16:55:57.186418"], ["updated_at", "2016-01-25 16:55:57.186418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-25 16:55:57.192421"], ["updated_at", "2016-01-25 16:55:57.192421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.7ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:55:57.320660"], ["updated_at", "2016-01-25 16:55:57.320660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (3.8ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:55:57.335967"], ["updated_at", "2016-01-25 16:55:57.335967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-25 16:55:57.346492"], ["updated_at", "2016-01-25 16:55:57.346492"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:57.348834"], ["updated_at", "2016-01-25 16:55:57.348834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:55:57.354140"], ["updated_at", "2016-01-25 16:55:57.354140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-25 16:55:57.357539"], ["updated_at", "2016-01-25 16:55:57.357539"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:57.383463"], ["updated_at", "2016-01-25 16:55:57.383463"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-25 16:55:57.387105"], ["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-25 16:55:57.400514"], ["updated_at", "2016-01-25 16:55:57.400514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:55:57.405895"], ["updated_at", "2016-01-25 16:55:57.405895"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-25 16:55:57.411139"], ["updated_at", "2016-01-25 16:55:57.411139"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:57.413627"], ["updated_at", "2016-01-25 16:55:57.413627"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:57.415770"], ["updated_at", "2016-01-25 16:55:57.415770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:55:57.445217"], ["updated_at", "2016-01-25 16:55:57.445217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-01-25 16:55:57.450415"], ["updated_at", "2016-01-25 16:55:57.450415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction [35m (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.4ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-25 16:55:57.515557"], ["updated_at", "2016-01-25 16:55:57.515557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:55:57.530792"], ["updated_at", "2016-01-25 16:55:57.530792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-25 16:55:57.534086"], ["updated_at", "2016-01-25 16:55:57.534086"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:55:57.537402"], ["updated_at", "2016-01-25 16:55:57.537402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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_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.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.7ms) 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_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.7ms) 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_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.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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';  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:57:33.726588"], ["updated_at", "2016-01-25 16:57:33.726588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-25 16:57:33.846681"], ["updated_at", "2016-01-25 16:57:33.846681"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:33.855215"], ["updated_at", "2016-01-25 16:57:33.855215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:33.857820"], ["updated_at", "2016-01-25 16:57:33.857820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-25 16:57:33.869855"], ["updated_at", "2016-01-25 16:57:33.869855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:57:33.872080"], ["updated_at", "2016-01-25 16:57:33.872080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-25 16:57:33.874812"], ["updated_at", "2016-01-25 16:57:33.874812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:57:33.876552"], ["updated_at", "2016-01-25 16:57:33.876552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-25 16:57:33.879458"], ["updated_at", "2016-01-25 16:57:33.879458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:57:33.881106"], ["updated_at", "2016-01-25 16:57:33.881106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:57:33.885242"], ["updated_at", "2016-01-25 16:57:33.885242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:57:33.872080"], ["updated_at", "2016-01-25 16:57:33.872080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:57:33.894415"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:57:33.876552"], ["updated_at", "2016-01-25 16:57:33.876552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:57:33.899805"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:57:33.881106"], ["updated_at", "2016-01-25 16:57:33.881106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:57:33.904112"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:57:33.909258"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:57:33.919544"], ["updated_at", "2016-01-25 16:57:33.919544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-25 16:57:33.922039"], ["updated_at", "2016-01-25 16:57:33.922039"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:33.924692"], ["updated_at", "2016-01-25 16:57:33.924692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:33.927144"], ["updated_at", "2016-01-25 16:57:33.927144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-25 16:57:33.930426"], ["updated_at", "2016-01-25 16:57:33.930426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:57:33.932196"], ["updated_at", "2016-01-25 16:57:33.932196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-25 16:57:33.935073"], ["updated_at", "2016-01-25 16:57:33.935073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:57:33.936571"], ["updated_at", "2016-01-25 16:57:33.936571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-25 16:57:33.940010"], ["updated_at", "2016-01-25 16:57:33.940010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:57:33.941791"], ["updated_at", "2016-01-25 16:57:33.941791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:57:33.947495"], ["updated_at", "2016-01-25 16:57:33.947495"]]  (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" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-25 16:57:33.957363"], ["updated_at", "2016-01-25 16:57:33.957363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-25 16:57:33.960215"], ["updated_at", "2016-01-25 16:57:33.960215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-25 16:57:33.963255"], ["updated_at", "2016-01-25 16:57:33.963255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-25 16:57:33.964648"], ["updated_at", "2016-01-25 16:57:33.964648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-25 16:57:33.966957"], ["updated_at", "2016-01-25 16:57:33.966957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-25 16:57:33.968264"], ["updated_at", "2016-01-25 16:57:33.968264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-25 16:57:33.973786"], ["updated_at", "2016-01-25 16:57:33.973786"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:33.981782"], ["updated_at", "2016-01-25 16:57:33.981782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-25 16:57:33.990838"], ["updated_at", "2016-01-25 16:57:33.990838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-25 16:57:33.995076"], ["updated_at", "2016-01-25 16:57:33.995076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-25 16:57:34.001499"], ["updated_at", "2016-01-25 16:57:34.001499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:57:34.011413"], ["updated_at", "2016-01-25 16:57:34.011413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-25 16:57:34.014115"], ["updated_at", "2016-01-25 16:57:34.014115"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:34.016159"], ["updated_at", "2016-01-25 16:57:34.016159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:34.017905"], ["updated_at", "2016-01-25 16:57:34.017905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-25 16:57:34.020732"], ["updated_at", "2016-01-25 16:57:34.020732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:57:34.023274"], ["updated_at", "2016-01-25 16:57:34.023274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-25 16:57:34.026470"], ["updated_at", "2016-01-25 16:57:34.026470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:57:34.028171"], ["updated_at", "2016-01-25 16:57:34.028171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-25 16:57:34.031709"], ["updated_at", "2016-01-25 16:57:34.031709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:57:34.033411"], ["updated_at", "2016-01-25 16:57:34.033411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:57:34.035686"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:57:34.037214"], ["updated_at", "2016-01-25 16:57:34.037214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: aec79108-9dcb-4c5a-b92d-6185c68969ad) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:57:34.023274"], ["updated_at", "2016-01-25 16:57:34.023274"]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:57:34.050395"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:57:34.028171"], ["updated_at", "2016-01-25 16:57:34.028171"]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:57:34.055046"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:57:34.033411"], ["updated_at", "2016-01-25 16:57:34.033411"]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:57:34.062456"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:57:34.064671"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aec79108-9dcb-4c5a-b92d-6185c68969ad] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.21ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:57:34.078365"], ["updated_at", "2016-01-25 16:57:34.078365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-25 16:57:34.081229"], ["updated_at", "2016-01-25 16:57:34.081229"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:34.083103"], ["updated_at", "2016-01-25 16:57:34.083103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:34.085104"], ["updated_at", "2016-01-25 16:57:34.085104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-25 16:57:34.088171"], ["updated_at", "2016-01-25 16:57:34.088171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:57:34.090012"], ["updated_at", "2016-01-25 16:57:34.090012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-25 16:57:34.092822"], ["updated_at", "2016-01-25 16:57:34.092822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:57:34.094511"], ["updated_at", "2016-01-25 16:57:34.094511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-25 16:57:34.097116"], ["updated_at", "2016-01-25 16:57:34.097116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:57:34.098506"], ["updated_at", "2016-01-25 16:57:34.098506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:57:34.101007"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:57:34.102632"], ["updated_at", "2016-01-25 16:57:34.102632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 4a1f3274-668b-4ff0-8c00-593f0a76f54c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:57:34.090012"], ["updated_at", "2016-01-25 16:57:34.090012"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:57:34.110591"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:57:34.094511"], ["updated_at", "2016-01-25 16:57:34.094511"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:57:34.115842"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:57:34.098506"], ["updated_at", "2016-01-25 16:57:34.098506"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:57:34.120184"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:57:34.122080"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4a1f3274-668b-4ff0-8c00-593f0a76f54c] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.83ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-25 16:57:34.131399"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:57:34.132994"], ["updated_at", "2016-01-25 16:57:34.132994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: bb7c96a5-b1a1-4422-9a12-2e158356baa6) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:57:34.090012"], ["updated_at", "2016-01-25 16:57:34.090012"]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:57:34.141975"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:57:34.094511"], ["updated_at", "2016-01-25 16:57:34.094511"]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:57:34.146791"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:57:34.098506"], ["updated_at", "2016-01-25 16:57:34.098506"]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:57:34.151189"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:57:34.153055"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bb7c96a5-b1a1-4422-9a12-2e158356baa6] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.92ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-25 16:57:34.168659"], ["updated_at", "2016-01-25 16:57:34.168659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-25 16:57:34.174617"], ["updated_at", "2016-01-25 16:57:34.174617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-25 16:57:34.194946"], ["updated_at", "2016-01-25 16:57:34.194946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-25 16:57:34.208660"], ["updated_at", "2016-01-25 16:57:34.208660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-25 16:57:34.213471"], ["updated_at", "2016-01-25 16:57:34.213471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-25 16:57:34.219200"], ["updated_at", "2016-01-25 16:57:34.219200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:57:34.225589"], ["updated_at", "2016-01-25 16:57:34.225589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:57:34.227545"], ["updated_at", "2016-01-25 16:57:34.227545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:57:34.233865"], ["updated_at", "2016-01-25 16:57:34.233865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:57:34.236188"], ["updated_at", "2016-01-25 16:57:34.236188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-25 16:57:34.243733"], ["updated_at", "2016-01-25 16:57:34.243733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-01-25 16:57:34.248978"], ["updated_at", "2016-01-25 16:57:34.248978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-25 16:57:34.254064"], ["updated_at", "2016-01-25 16:57:34.254064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:57:34.403931"], ["updated_at", "2016-01-25 16:57:34.403931"]]  (0.1ms) RELEASE 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 1 [["slug", "winterfell-news-6"]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:57:34.428457"], ["updated_at", "2016-01-25 16:57:34.428457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-25 16:57:34.431596"], ["updated_at", "2016-01-25 16:57:34.431596"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:34.434155"], ["updated_at", "2016-01-25 16:57:34.434155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:57:34.438963"], ["updated_at", "2016-01-25 16:57:34.438963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-25 16:57:34.444063"], ["updated_at", "2016-01-25 16:57:34.444063"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:34.446252"], ["updated_at", "2016-01-25 16:57:34.446252"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-25 16:57:34.449748"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-25 16:57:34.465770"], ["updated_at", "2016-01-25 16:57:34.465770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:57:34.471203"], ["updated_at", "2016-01-25 16:57:34.471203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-25 16:57:34.476774"], ["updated_at", "2016-01-25 16:57:34.476774"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:34.479203"], ["updated_at", "2016-01-25 16:57:34.479203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:34.481331"], ["updated_at", "2016-01-25 16:57:34.481331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:57:34.511161"], ["updated_at", "2016-01-25 16:57:34.511161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (2.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-01-25 16:57:34.518588"], ["updated_at", "2016-01-25 16:57:34.518588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-25 16:57:34.576317"], ["updated_at", "2016-01-25 16:57:34.576317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:57:34.595169"], ["updated_at", "2016-01-25 16:57:34.595169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-25 16:57:34.599211"], ["updated_at", "2016-01-25 16:57:34.599211"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:57:34.602227"], ["updated_at", "2016-01-25 16:57:34.602227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (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.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';  (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.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';  (1.0ms) DELETE FROM "pulitzer_tags";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_tags';  (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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:19.868344"], ["updated_at", "2016-01-25 16:58:19.868344"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-25 16:58:19.984889"], ["updated_at", "2016-01-25 16:58:19.984889"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:19.992955"], ["updated_at", "2016-01-25 16:58:19.992955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:19.995355"], ["updated_at", "2016-01-25 16:58:19.995355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-25 16:58:20.008894"], ["updated_at", "2016-01-25 16:58:20.008894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:58:20.011191"], ["updated_at", "2016-01-25 16:58:20.011191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-25 16:58:20.014018"], ["updated_at", "2016-01-25 16:58:20.014018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:58:20.015426"], ["updated_at", "2016-01-25 16:58:20.015426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-25 16:58:20.018031"], ["updated_at", "2016-01-25 16:58:20.018031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:58:20.019478"], ["updated_at", "2016-01-25 16:58:20.019478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:58:20.024106"], ["updated_at", "2016-01-25 16:58:20.024106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec 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 1 [["post_id", 1], ["status", 4]] 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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:58:20.011191"], ["updated_at", "2016-01-25 16:58:20.011191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:20.035014"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:58:20.015426"], ["updated_at", "2016-01-25 16:58:20.015426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:20.041730"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:58:20.019478"], ["updated_at", "2016-01-25 16:58:20.019478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:20.046186"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:58:20.049344"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:20.061280"], ["updated_at", "2016-01-25 16:58:20.061280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-25 16:58:20.064612"], ["updated_at", "2016-01-25 16:58:20.064612"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:20.066964"], ["updated_at", "2016-01-25 16:58:20.066964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:20.068530"], ["updated_at", "2016-01-25 16:58:20.068530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-25 16:58:20.071246"], ["updated_at", "2016-01-25 16:58:20.071246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:58:20.072762"], ["updated_at", "2016-01-25 16:58:20.072762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-25 16:58:20.075965"], ["updated_at", "2016-01-25 16:58:20.075965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:58:20.077811"], ["updated_at", "2016-01-25 16:58:20.077811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-25 16:58:20.080669"], ["updated_at", "2016-01-25 16:58:20.080669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:58:20.082298"], ["updated_at", "2016-01-25 16:58:20.082298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:20.088386"], ["updated_at", "2016-01-25 16:58:20.088386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-25 16:58:20.098998"], ["updated_at", "2016-01-25 16:58:20.098998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-25 16:58:20.101678"], ["updated_at", "2016-01-25 16:58:20.101678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-25 16:58:20.104064"], ["updated_at", "2016-01-25 16:58:20.104064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-25 16:58:20.105301"], ["updated_at", "2016-01-25 16:58:20.105301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-25 16:58:20.107568"], ["updated_at", "2016-01-25 16:58:20.107568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-25 16:58:20.110757"], ["updated_at", "2016-01-25 16:58:20.110757"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-25 16:58:20.119655"], ["updated_at", "2016-01-25 16:58:20.119655"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:20.121231"], ["updated_at", "2016-01-25 16:58:20.121231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-25 16:58:20.129126"], ["updated_at", "2016-01-25 16:58:20.129126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-25 16:58:20.133254"], ["updated_at", "2016-01-25 16:58:20.133254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-25 16:58:20.137253"], ["updated_at", "2016-01-25 16:58:20.137253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:20.146112"], ["updated_at", "2016-01-25 16:58:20.146112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-25 16:58:20.148834"], ["updated_at", "2016-01-25 16:58:20.148834"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:20.150682"], ["updated_at", "2016-01-25 16:58:20.150682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:20.152414"], ["updated_at", "2016-01-25 16:58:20.152414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-25 16:58:20.154956"], ["updated_at", "2016-01-25 16:58:20.154956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:58:20.156406"], ["updated_at", "2016-01-25 16:58:20.156406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-25 16:58:20.160004"], ["updated_at", "2016-01-25 16:58:20.160004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:58:20.161586"], ["updated_at", "2016-01-25 16:58:20.161586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-25 16:58:20.164312"], ["updated_at", "2016-01-25 16:58:20.164312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:58:20.165693"], ["updated_at", "2016-01-25 16:58:20.165693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:58:20.167836"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:58:20.169373"], ["updated_at", "2016-01-25 16:58:20.169373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 411373b0-b343-4348-8aaa-cde90c3be797) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] Pulitzer::Post Load (0.3ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:58:20.156406"], ["updated_at", "2016-01-25 16:58:20.156406"]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:20.182105"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:58:20.161586"], ["updated_at", "2016-01-25 16:58:20.161586"]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:20.186395"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:58:20.165693"], ["updated_at", "2016-01-25 16:58:20.165693"]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] SQL (0.3ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:20.191045"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:58:20.194923"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [411373b0-b343-4348-8aaa-cde90c3be797] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.76ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:20.207309"], ["updated_at", "2016-01-25 16:58:20.207309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-25 16:58:20.209941"], ["updated_at", "2016-01-25 16:58:20.209941"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:20.211743"], ["updated_at", "2016-01-25 16:58:20.211743"]]  (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", "2016-01-25 16:58:20.213401"], ["updated_at", "2016-01-25 16:58:20.213401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-25 16:58:20.216730"], ["updated_at", "2016-01-25 16:58:20.216730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:58:20.218321"], ["updated_at", "2016-01-25 16:58:20.218321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-25 16:58:20.220968"], ["updated_at", "2016-01-25 16:58:20.220968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:58:20.222371"], ["updated_at", "2016-01-25 16:58:20.222371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-25 16:58:20.224896"], ["updated_at", "2016-01-25 16:58:20.224896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:58:20.226277"], ["updated_at", "2016-01-25 16:58:20.226277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:58:20.228560"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:58:20.229937"], ["updated_at", "2016-01-25 16:58:20.229937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: e784bbe7-e3c7-490a-9486-0d91bc697ec7) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:58:20.218321"], ["updated_at", "2016-01-25 16:58:20.218321"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:20.237440"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:58:20.222371"], ["updated_at", "2016-01-25 16:58:20.222371"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:20.242482"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:58:20.226277"], ["updated_at", "2016-01-25 16:58:20.226277"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:20.246850"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:58:20.248679"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e784bbe7-e3c7-490a-9486-0d91bc697ec7] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.36ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-25 16:58:20.255268"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:58:20.256666"], ["updated_at", "2016-01-25 16:58:20.256666"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: f7e04693-a133-43b7-a9f5-4e41ef895003) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:58:20.218321"], ["updated_at", "2016-01-25 16:58:20.218321"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:58:20.266516"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:58:20.222371"], ["updated_at", "2016-01-25 16:58:20.222371"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:58:20.270998"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:58:20.226277"], ["updated_at", "2016-01-25 16:58:20.226277"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:58:20.275601"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:58:20.277475"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f7e04693-a133-43b7-a9f5-4e41ef895003] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.56ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-25 16:58:20.291746"], ["updated_at", "2016-01-25 16:58:20.291746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-25 16:58:20.297043"], ["updated_at", "2016-01-25 16:58:20.297043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-25 16:58:20.316308"], ["updated_at", "2016-01-25 16:58:20.316308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-25 16:58:20.329546"], ["updated_at", "2016-01-25 16:58:20.329546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-25 16:58:20.334614"], ["updated_at", "2016-01-25 16:58:20.334614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-25 16:58:20.340502"], ["updated_at", "2016-01-25 16:58:20.340502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:58:20.346025"], ["updated_at", "2016-01-25 16:58:20.346025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:58:20.347694"], ["updated_at", "2016-01-25 16:58:20.347694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:58:20.353051"], ["updated_at", "2016-01-25 16:58:20.353051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:58:20.355416"], ["updated_at", "2016-01-25 16:58:20.355416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-25 16:58:20.361211"], ["updated_at", "2016-01-25 16:58:20.361211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-01-25 16:58:20.366179"], ["updated_at", "2016-01-25 16:58:20.366179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-25 16:58:20.371547"], ["updated_at", "2016-01-25 16:58:20.371547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:20.513637"], ["updated_at", "2016-01-25 16:58:20.513637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:20.537522"], ["updated_at", "2016-01-25 16:58:20.537522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.8ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-25 16:58:20.541069"], ["updated_at", "2016-01-25 16:58:20.541069"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:20.546290"], ["updated_at", "2016-01-25 16:58:20.546290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:20.551137"], ["updated_at", "2016-01-25 16:58:20.551137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-25 16:58:20.554128"], ["updated_at", "2016-01-25 16:58:20.554128"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:20.556193"], ["updated_at", "2016-01-25 16:58:20.556193"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-25 16:58:20.559697"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-25 16:58:20.575593"], ["updated_at", "2016-01-25 16:58:20.575593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:20.582531"], ["updated_at", "2016-01-25 16:58:20.582531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-25 16:58:20.586417"], ["updated_at", "2016-01-25 16:58:20.586417"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:20.588565"], ["updated_at", "2016-01-25 16:58:20.588565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:20.591345"], ["updated_at", "2016-01-25 16:58:20.591345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:20.618710"], ["updated_at", "2016-01-25 16:58:20.618710"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-01-25 16:58:20.623340"], ["updated_at", "2016-01-25 16:58:20.623340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-25 16:58:20.678296"], ["updated_at", "2016-01-25 16:58:20.678296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:20.693769"], ["updated_at", "2016-01-25 16:58:20.693769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-25 16:58:20.696903"], ["updated_at", "2016-01-25 16:58:20.696903"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:20.699214"], ["updated_at", "2016-01-25 16:58:20.699214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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_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.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_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_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.2ms) 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_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.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:38.688984"], ["updated_at", "2016-01-25 16:58:38.688984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-25 16:58:38.809631"], ["updated_at", "2016-01-25 16:58:38.809631"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:38.819354"], ["updated_at", "2016-01-25 16:58:38.819354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:38.821997"], ["updated_at", "2016-01-25 16:58:38.821997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-25 16:58:38.834631"], ["updated_at", "2016-01-25 16:58:38.834631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:58:38.838341"], ["updated_at", "2016-01-25 16:58:38.838341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-25 16:58:38.841743"], ["updated_at", "2016-01-25 16:58:38.841743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:58:38.843483"], ["updated_at", "2016-01-25 16:58:38.843483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-25 16:58:38.846423"], ["updated_at", "2016-01-25 16:58:38.846423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:58:38.848033"], ["updated_at", "2016-01-25 16:58:38.848033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:58:38.853653"], ["updated_at", "2016-01-25 16:58:38.853653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:58:38.838341"], ["updated_at", "2016-01-25 16:58:38.838341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:38.864010"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:58:38.843483"], ["updated_at", "2016-01-25 16:58:38.843483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:38.869103"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:58:38.848033"], ["updated_at", "2016-01-25 16:58:38.848033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:38.873378"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:58:38.876449"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:38.886915"], ["updated_at", "2016-01-25 16:58:38.886915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-25 16:58:38.890392"], ["updated_at", "2016-01-25 16:58:38.890392"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:38.892404"], ["updated_at", "2016-01-25 16:58:38.892404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:38.894237"], ["updated_at", "2016-01-25 16:58:38.894237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-25 16:58:38.897092"], ["updated_at", "2016-01-25 16:58:38.897092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:58:38.898577"], ["updated_at", "2016-01-25 16:58:38.898577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-25 16:58:38.901089"], ["updated_at", "2016-01-25 16:58:38.901089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:58:38.902559"], ["updated_at", "2016-01-25 16:58:38.902559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-25 16:58:38.906003"], ["updated_at", "2016-01-25 16:58:38.906003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:58:38.908161"], ["updated_at", "2016-01-25 16:58:38.908161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:58:38.910667"], ["updated_at", "2016-01-25 16:58:38.910667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:58:38.898577"], ["updated_at", "2016-01-25 16:58:38.898577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:38.917053"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:58:38.902559"], ["updated_at", "2016-01-25 16:58:38.902559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:38.924515"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:58:38.908161"], ["updated_at", "2016-01-25 16:58:38.908161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:38.928681"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.2ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:58:38.930825"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:38.944594"], ["updated_at", "2016-01-25 16:58:38.944594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-25 16:58:38.953823"], ["updated_at", "2016-01-25 16:58:38.953823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-25 16:58:38.957811"], ["updated_at", "2016-01-25 16:58:38.957811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-25 16:58:38.960415"], ["updated_at", "2016-01-25 16:58:38.960415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-25 16:58:38.961680"], ["updated_at", "2016-01-25 16:58:38.961680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-25 16:58:38.963782"], ["updated_at", "2016-01-25 16:58:38.963782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-25 16:58:38.965171"], ["updated_at", "2016-01-25 16:58:38.965171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-25 16:58:38.969604"], ["updated_at", "2016-01-25 16:58:38.969604"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:38.971223"], ["updated_at", "2016-01-25 16:58:38.971223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.2ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-25 16:58:38.979422"], ["updated_at", "2016-01-25 16:58:38.979422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-25 16:58:38.983445"], ["updated_at", "2016-01-25 16:58:38.983445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-25 16:58:38.987173"], ["updated_at", "2016-01-25 16:58:38.987173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:38.997146"], ["updated_at", "2016-01-25 16:58:38.997146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-25 16:58:38.999575"], ["updated_at", "2016-01-25 16:58:38.999575"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:39.002056"], ["updated_at", "2016-01-25 16:58:39.002056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:39.004261"], ["updated_at", "2016-01-25 16:58:39.004261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-25 16:58:39.007605"], ["updated_at", "2016-01-25 16:58:39.007605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:58:39.009217"], ["updated_at", "2016-01-25 16:58:39.009217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-25 16:58:39.011854"], ["updated_at", "2016-01-25 16:58:39.011854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:58:39.013405"], ["updated_at", "2016-01-25 16:58:39.013405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-25 16:58:39.015973"], ["updated_at", "2016-01-25 16:58:39.015973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:58:39.017346"], ["updated_at", "2016-01-25 16:58:39.017346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:58:39.019482"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:58:39.020823"], ["updated_at", "2016-01-25 16:58:39.020823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 80f800cf-1f5a-4da1-982d-ed9ad51f323c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:58:39.009217"], ["updated_at", "2016-01-25 16:58:39.009217"]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:39.032466"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:58:39.013405"], ["updated_at", "2016-01-25 16:58:39.013405"]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:39.037332"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:58:39.017346"], ["updated_at", "2016-01-25 16:58:39.017346"]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:39.043265"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:58:39.045161"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [80f800cf-1f5a-4da1-982d-ed9ad51f323c] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.78ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:39.056217"], ["updated_at", "2016-01-25 16:58:39.056217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-25 16:58:39.059016"], ["updated_at", "2016-01-25 16:58:39.059016"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:39.060903"], ["updated_at", "2016-01-25 16:58:39.060903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:39.062392"], ["updated_at", "2016-01-25 16:58:39.062392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-25 16:58:39.065637"], ["updated_at", "2016-01-25 16:58:39.065637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:58:39.067148"], ["updated_at", "2016-01-25 16:58:39.067148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-25 16:58:39.069818"], ["updated_at", "2016-01-25 16:58:39.069818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:58:39.071396"], ["updated_at", "2016-01-25 16:58:39.071396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-25 16:58:39.074655"], ["updated_at", "2016-01-25 16:58:39.074655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:58:39.076107"], ["updated_at", "2016-01-25 16:58:39.076107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:58:39.078207"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:58:39.079583"], ["updated_at", "2016-01-25 16:58:39.079583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 45aebc03-832b-4af6-90c1-41756ca4bce6) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:58:39.067148"], ["updated_at", "2016-01-25 16:58:39.067148"]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:39.087464"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:58:39.071396"], ["updated_at", "2016-01-25 16:58:39.071396"]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:39.092945"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:58:39.076107"], ["updated_at", "2016-01-25 16:58:39.076107"]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:58:39.097734"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:58:39.099540"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [45aebc03-832b-4af6-90c1-41756ca4bce6] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.87ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 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 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-25 16:58:39.107368"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:58:39.108964"], ["updated_at", "2016-01-25 16:58:39.108964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 7289adbc-2415-48cf-a87c-e27857e411e9) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:58:39.067148"], ["updated_at", "2016-01-25 16:58:39.067148"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:58:39.116675"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:58:39.071396"], ["updated_at", "2016-01-25 16:58:39.071396"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:58:39.121008"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:58:39.076107"], ["updated_at", "2016-01-25 16:58:39.076107"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:58:39.127886"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:58:39.130243"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7289adbc-2415-48cf-a87c-e27857e411e9] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.0ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-25 16:58:39.144946"], ["updated_at", "2016-01-25 16:58:39.144946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-25 16:58:39.150580"], ["updated_at", "2016-01-25 16:58:39.150580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-25 16:58:39.173413"], ["updated_at", "2016-01-25 16:58:39.173413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-25 16:58:39.184638"], ["updated_at", "2016-01-25 16:58:39.184638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-25 16:58:39.191658"], ["updated_at", "2016-01-25 16:58:39.191658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-25 16:58:39.196257"], ["updated_at", "2016-01-25 16:58:39.196257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:58:39.201773"], ["updated_at", "2016-01-25 16:58:39.201773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:58:39.203397"], ["updated_at", "2016-01-25 16:58:39.203397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:58:39.209868"], ["updated_at", "2016-01-25 16:58:39.209868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:58:39.212032"], ["updated_at", "2016-01-25 16:58:39.212032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-25 16:58:39.217734"], ["updated_at", "2016-01-25 16:58:39.217734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-01-25 16:58:39.234892"], ["updated_at", "2016-01-25 16:58:39.234892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-25 16:58:39.241188"], ["updated_at", "2016-01-25 16:58:39.241188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:39.369673"], ["updated_at", "2016-01-25 16:58:39.369673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:39.395017"], ["updated_at", "2016-01-25 16:58:39.395017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-25 16:58:39.400804"], ["updated_at", "2016-01-25 16:58:39.400804"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:39.403303"], ["updated_at", "2016-01-25 16:58:39.403303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:39.409238"], ["updated_at", "2016-01-25 16:58:39.409238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-25 16:58:39.412712"], ["updated_at", "2016-01-25 16:58:39.412712"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:39.414896"], ["updated_at", "2016-01-25 16:58:39.414896"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-25 16:58:39.418009"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-25 16:58:39.432900"], ["updated_at", "2016-01-25 16:58:39.432900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:39.437168"], ["updated_at", "2016-01-25 16:58:39.437168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-25 16:58:39.444086"], ["updated_at", "2016-01-25 16:58:39.444086"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:39.446709"], ["updated_at", "2016-01-25 16:58:39.446709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:39.449050"], ["updated_at", "2016-01-25 16:58:39.449050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:39.474620"], ["updated_at", "2016-01-25 16:58:39.474620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-01-25 16:58:39.478579"], ["updated_at", "2016-01-25 16:58:39.478579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) commit transaction  (0.3ms) begin transaction Pulitzer::Tag Load (0.4ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-25 16:58:39.536449"], ["updated_at", "2016-01-25 16:58:39.536449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:58:39.553650"], ["updated_at", "2016-01-25 16:58:39.553650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-25 16:58:39.556641"], ["updated_at", "2016-01-25 16:58:39.556641"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:58:39.559036"], ["updated_at", "2016-01-25 16:58:39.559036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.1ms) 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.1ms) 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';  (1.0ms) 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_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.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';  (0.8ms) DELETE FROM "pulitzer_tags";  (0.2ms) 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_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.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:12.066927"], ["updated_at", "2016-01-25 16:59:12.066927"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-25 16:59:12.185267"], ["updated_at", "2016-01-25 16:59:12.185267"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.193575"], ["updated_at", "2016-01-25 16:59:12.193575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.195743"], ["updated_at", "2016-01-25 16:59:12.195743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-25 16:59:12.209772"], ["updated_at", "2016-01-25 16:59:12.209772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:59:12.212145"], ["updated_at", "2016-01-25 16:59:12.212145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-25 16:59:12.215006"], ["updated_at", "2016-01-25 16:59:12.215006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:59:12.216502"], ["updated_at", "2016-01-25 16:59:12.216502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-25 16:59:12.219177"], ["updated_at", "2016-01-25 16:59:12.219177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:59:12.220902"], ["updated_at", "2016-01-25 16:59:12.220902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:12.225856"], ["updated_at", "2016-01-25 16:59:12.225856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:12.212145"], ["updated_at", "2016-01-25 16:59:12.212145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:12.234828"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:12.216502"], ["updated_at", "2016-01-25 16:59:12.216502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:12.240785"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:12.220902"], ["updated_at", "2016-01-25 16:59:12.220902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:12.245052"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:12.248358"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:12.258530"], ["updated_at", "2016-01-25 16:59:12.258530"]]  (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 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-25 16:59:12.261191"], ["updated_at", "2016-01-25 16:59:12.261191"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.263538"], ["updated_at", "2016-01-25 16:59:12.263538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.265851"], ["updated_at", "2016-01-25 16:59:12.265851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-25 16:59:12.268744"], ["updated_at", "2016-01-25 16:59:12.268744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:59:12.270275"], ["updated_at", "2016-01-25 16:59:12.270275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-25 16:59:12.273296"], ["updated_at", "2016-01-25 16:59:12.273296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:59:12.274881"], ["updated_at", "2016-01-25 16:59:12.274881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-25 16:59:12.277618"], ["updated_at", "2016-01-25 16:59:12.277618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:59:12.279011"], ["updated_at", "2016-01-25 16:59:12.279011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:12.280880"], ["updated_at", "2016-01-25 16:59:12.280880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:12.270275"], ["updated_at", "2016-01-25 16:59:12.270275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:12.287378"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:12.274881"], ["updated_at", "2016-01-25 16:59:12.274881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:12.292599"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:12.279011"], ["updated_at", "2016-01-25 16:59:12.279011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:12.300010"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:12.301883"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.4ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:12.318032"], ["updated_at", "2016-01-25 16:59:12.318032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-25 16:59:12.326108"], ["updated_at", "2016-01-25 16:59:12.326108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-25 16:59:12.328629"], ["updated_at", "2016-01-25 16:59:12.328629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-25 16:59:12.331041"], ["updated_at", "2016-01-25 16:59:12.331041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-25 16:59:12.332445"], ["updated_at", "2016-01-25 16:59:12.332445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-25 16:59:12.334947"], ["updated_at", "2016-01-25 16:59:12.334947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-25 16:59:12.336213"], ["updated_at", "2016-01-25 16:59:12.336213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-25 16:59:12.342435"], ["updated_at", "2016-01-25 16:59:12.342435"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.344196"], ["updated_at", "2016-01-25 16:59:12.344196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-25 16:59:12.351504"], ["updated_at", "2016-01-25 16:59:12.351504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-25 16:59:12.360063"], ["updated_at", "2016-01-25 16:59:12.360063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-25 16:59:12.364636"], ["updated_at", "2016-01-25 16:59:12.364636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:12.372343"], ["updated_at", "2016-01-25 16:59:12.372343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-25 16:59:12.374977"], ["updated_at", "2016-01-25 16:59:12.374977"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.376871"], ["updated_at", "2016-01-25 16:59:12.376871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.378522"], ["updated_at", "2016-01-25 16:59:12.378522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-25 16:59:12.381385"], ["updated_at", "2016-01-25 16:59:12.381385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:59:12.382865"], ["updated_at", "2016-01-25 16:59:12.382865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-25 16:59:12.385443"], ["updated_at", "2016-01-25 16:59:12.385443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:59:12.386936"], ["updated_at", "2016-01-25 16:59:12.386936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-25 16:59:12.389912"], ["updated_at", "2016-01-25 16:59:12.389912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:59:12.391745"], ["updated_at", "2016-01-25 16:59:12.391745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:59:12.394145"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:12.395573"], ["updated_at", "2016-01-25 16:59:12.395573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: e0533ed4-a79d-4a1d-8a54-74651d405d64) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:12.382865"], ["updated_at", "2016-01-25 16:59:12.382865"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:12.407348"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:12.386936"], ["updated_at", "2016-01-25 16:59:12.386936"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:12.412183"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:12.391745"], ["updated_at", "2016-01-25 16:59:12.391745"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:12.416763"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:12.418668"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0533ed4-a79d-4a1d-8a54-74651d405d64] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.33ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:12.433457"], ["updated_at", "2016-01-25 16:59:12.433457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-25 16:59:12.436367"], ["updated_at", "2016-01-25 16:59:12.436367"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.438616"], ["updated_at", "2016-01-25 16:59:12.438616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.440631"], ["updated_at", "2016-01-25 16:59:12.440631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-25 16:59:12.443372"], ["updated_at", "2016-01-25 16:59:12.443372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:59:12.444874"], ["updated_at", "2016-01-25 16:59:12.444874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-25 16:59:12.447422"], ["updated_at", "2016-01-25 16:59:12.447422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:59:12.448930"], ["updated_at", "2016-01-25 16:59:12.448930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-25 16:59:12.451943"], ["updated_at", "2016-01-25 16:59:12.451943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:59:12.453446"], ["updated_at", "2016-01-25 16:59:12.453446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:59:12.456020"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:12.457632"], ["updated_at", "2016-01-25 16:59:12.457632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6d64363c-b8bb-41be-8834-f7225e9cec51) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:12.444874"], ["updated_at", "2016-01-25 16:59:12.444874"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:12.467236"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:12.448930"], ["updated_at", "2016-01-25 16:59:12.448930"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:12.474027"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:12.453446"], ["updated_at", "2016-01-25 16:59:12.453446"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:12.479009"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:12.481054"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6d64363c-b8bb-41be-8834-f7225e9cec51] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.38ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-25 16:59:12.488672"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:12.490710"], ["updated_at", "2016-01-25 16:59:12.490710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:12.444874"], ["updated_at", "2016-01-25 16:59:12.444874"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:59:12.499362"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:12.448930"], ["updated_at", "2016-01-25 16:59:12.448930"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:59:12.503882"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:12.453446"], ["updated_at", "2016-01-25 16:59:12.453446"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:59:12.508576"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:12.510479"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a2450d75-ef1b-41ca-a1b3-0fcd52e0ceb6] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.8ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-25 16:59:12.524145"], ["updated_at", "2016-01-25 16:59:12.524145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-25 16:59:12.529022"], ["updated_at", "2016-01-25 16:59:12.529022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-25 16:59:12.553324"], ["updated_at", "2016-01-25 16:59:12.553324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-25 16:59:12.559583"], ["updated_at", "2016-01-25 16:59:12.559583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-25 16:59:12.564346"], ["updated_at", "2016-01-25 16:59:12.564346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:59:12.569755"], ["updated_at", "2016-01-25 16:59:12.569755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:12.573212"], ["updated_at", "2016-01-25 16:59:12.573212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:59:12.580302"], ["updated_at", "2016-01-25 16:59:12.580302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:12.582104"], ["updated_at", "2016-01-25 16:59:12.582104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-25 16:59:12.598988"], ["updated_at", "2016-01-25 16:59:12.598988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-25 16:59:12.606470"], ["updated_at", "2016-01-25 16:59:12.606470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-25 16:59:12.612668"], ["updated_at", "2016-01-25 16:59:12.612668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:12.741798"], ["updated_at", "2016-01-25 16:59:12.741798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:12.763961"], ["updated_at", "2016-01-25 16:59:12.763961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-25 16:59:12.767309"], ["updated_at", "2016-01-25 16:59:12.767309"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.769941"], ["updated_at", "2016-01-25 16:59:12.769941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:12.781105"], ["updated_at", "2016-01-25 16:59:12.781105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-25 16:59:12.784281"], ["updated_at", "2016-01-25 16:59:12.784281"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.787214"], ["updated_at", "2016-01-25 16:59:12.787214"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-25 16:59:12.790986"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-25 16:59:12.809506"], ["updated_at", "2016-01-25 16:59:12.809506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:12.814393"], ["updated_at", "2016-01-25 16:59:12.814393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-25 16:59:12.817536"], ["updated_at", "2016-01-25 16:59:12.817536"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.819620"], ["updated_at", "2016-01-25 16:59:12.819620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.822038"], ["updated_at", "2016-01-25 16:59:12.822038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:12.846816"], ["updated_at", "2016-01-25 16:59:12.846816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-01-25 16:59:12.850212"], ["updated_at", "2016-01-25 16:59:12.850212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-25 16:59:12.916614"], ["updated_at", "2016-01-25 16:59:12.916614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:12.932954"], ["updated_at", "2016-01-25 16:59:12.932954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-25 16:59:12.936379"], ["updated_at", "2016-01-25 16:59:12.936379"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:12.940625"], ["updated_at", "2016-01-25 16:59:12.940625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.0ms) 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_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';  (1.0ms) 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_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';  (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.2ms) 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_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.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:24.729529"], ["updated_at", "2016-01-25 16:59:24.729529"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-25 16:59:24.844493"], ["updated_at", "2016-01-25 16:59:24.844493"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:24.853105"], ["updated_at", "2016-01-25 16:59:24.853105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:24.855313"], ["updated_at", "2016-01-25 16:59:24.855313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-25 16:59:24.867728"], ["updated_at", "2016-01-25 16:59:24.867728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:59:24.869938"], ["updated_at", "2016-01-25 16:59:24.869938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-25 16:59:24.872819"], ["updated_at", "2016-01-25 16:59:24.872819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:59:24.874555"], ["updated_at", "2016-01-25 16:59:24.874555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-25 16:59:24.877517"], ["updated_at", "2016-01-25 16:59:24.877517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:59:24.879125"], ["updated_at", "2016-01-25 16:59:24.879125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:24.884013"], ["updated_at", "2016-01-25 16:59:24.884013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:24.869938"], ["updated_at", "2016-01-25 16:59:24.869938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:24.892154"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:24.874555"], ["updated_at", "2016-01-25 16:59:24.874555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:24.897735"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:24.879125"], ["updated_at", "2016-01-25 16:59:24.879125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:24.901896"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:24.905204"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:24.916342"], ["updated_at", "2016-01-25 16:59:24.916342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-25 16:59:24.919269"], ["updated_at", "2016-01-25 16:59:24.919269"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:24.921473"], ["updated_at", "2016-01-25 16:59:24.921473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:24.923019"], ["updated_at", "2016-01-25 16:59:24.923019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-25 16:59:24.925543"], ["updated_at", "2016-01-25 16:59:24.925543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:59:24.927003"], ["updated_at", "2016-01-25 16:59:24.927003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-25 16:59:24.929876"], ["updated_at", "2016-01-25 16:59:24.929876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:59:24.931566"], ["updated_at", "2016-01-25 16:59:24.931566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-25 16:59:24.934257"], ["updated_at", "2016-01-25 16:59:24.934257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:59:24.935753"], ["updated_at", "2016-01-25 16:59:24.935753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:24.937796"], ["updated_at", "2016-01-25 16:59:24.937796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:24.927003"], ["updated_at", "2016-01-25 16:59:24.927003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:24.944307"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:24.931566"], ["updated_at", "2016-01-25 16:59:24.931566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:24.950014"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:24.935753"], ["updated_at", "2016-01-25 16:59:24.935753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:24.957937"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:24.959901"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.5ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:24.977473"], ["updated_at", "2016-01-25 16:59:24.977473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-25 16:59:24.985774"], ["updated_at", "2016-01-25 16:59:24.985774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-25 16:59:24.988499"], ["updated_at", "2016-01-25 16:59:24.988499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-25 16:59:24.990894"], ["updated_at", "2016-01-25 16:59:24.990894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-25 16:59:24.992171"], ["updated_at", "2016-01-25 16:59:24.992171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-25 16:59:24.994328"], ["updated_at", "2016-01-25 16:59:24.994328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-25 16:59:24.995579"], ["updated_at", "2016-01-25 16:59:24.995579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-25 16:59:25.000837"], ["updated_at", "2016-01-25 16:59:25.000837"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:25.003217"], ["updated_at", "2016-01-25 16:59:25.003217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-25 16:59:25.011519"], ["updated_at", "2016-01-25 16:59:25.011519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-25 16:59:25.018817"], ["updated_at", "2016-01-25 16:59:25.018817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-25 16:59:25.024166"], ["updated_at", "2016-01-25 16:59:25.024166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:25.032243"], ["updated_at", "2016-01-25 16:59:25.032243"]]  (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 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-25 16:59:25.035700"], ["updated_at", "2016-01-25 16:59:25.035700"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:25.038402"], ["updated_at", "2016-01-25 16:59:25.038402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:25.040186"], ["updated_at", "2016-01-25 16:59:25.040186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-25 16:59:25.043105"], ["updated_at", "2016-01-25 16:59:25.043105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:59:25.044840"], ["updated_at", "2016-01-25 16:59:25.044840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-25 16:59:25.049272"], ["updated_at", "2016-01-25 16:59:25.049272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:59:25.050801"], ["updated_at", "2016-01-25 16:59:25.050801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-25 16:59:25.053403"], ["updated_at", "2016-01-25 16:59:25.053403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:59:25.054807"], ["updated_at", "2016-01-25 16:59:25.054807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:59:25.057114"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:25.058645"], ["updated_at", "2016-01-25 16:59:25.058645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 24062b50-be19-4e85-b787-31673358ac1c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:25.044840"], ["updated_at", "2016-01-25 16:59:25.044840"]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:25.071314"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:25.050801"], ["updated_at", "2016-01-25 16:59:25.050801"]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:25.076246"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:25.054807"], ["updated_at", "2016-01-25 16:59:25.054807"]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:25.083377"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:25.085707"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24062b50-be19-4e85-b787-31673358ac1c] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.54ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:25.098583"], ["updated_at", "2016-01-25 16:59:25.098583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-25 16:59:25.101282"], ["updated_at", "2016-01-25 16:59:25.101282"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:25.103212"], ["updated_at", "2016-01-25 16:59:25.103212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:25.105311"], ["updated_at", "2016-01-25 16:59:25.105311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-25 16:59:25.107982"], ["updated_at", "2016-01-25 16:59:25.107982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:59:25.109482"], ["updated_at", "2016-01-25 16:59:25.109482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-25 16:59:25.111973"], ["updated_at", "2016-01-25 16:59:25.111973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:59:25.113354"], ["updated_at", "2016-01-25 16:59:25.113354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-25 16:59:25.116126"], ["updated_at", "2016-01-25 16:59:25.116126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:59:25.117528"], ["updated_at", "2016-01-25 16:59:25.117528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:59:25.119576"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:25.120969"], ["updated_at", "2016-01-25 16:59:25.120969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c90382cf-3180-4394-92d7-ef788c7ca284) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:25.109482"], ["updated_at", "2016-01-25 16:59:25.109482"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:25.131692"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:25.113354"], ["updated_at", "2016-01-25 16:59:25.113354"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:25.136432"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:25.117528"], ["updated_at", "2016-01-25 16:59:25.117528"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:25.141220"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:25.143189"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c90382cf-3180-4394-92d7-ef788c7ca284] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.15ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-25 16:59:25.152358"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:25.154044"], ["updated_at", "2016-01-25 16:59:25.154044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 952112c6-5982-4424-9a5e-5add4c78d8ac) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:25.109482"], ["updated_at", "2016-01-25 16:59:25.109482"]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:59:25.163040"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:25.113354"], ["updated_at", "2016-01-25 16:59:25.113354"]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:59:25.167982"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:25.117528"], ["updated_at", "2016-01-25 16:59:25.117528"]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:59:25.172169"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:25.174220"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [952112c6-5982-4424-9a5e-5add4c78d8ac] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.87ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-25 16:59:25.190837"], ["updated_at", "2016-01-25 16:59:25.190837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-25 16:59:25.201713"], ["updated_at", "2016-01-25 16:59:25.201713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-25 16:59:25.206715"], ["updated_at", "2016-01-25 16:59:25.206715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-25 16:59:25.211875"], ["updated_at", "2016-01-25 16:59:25.211875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:59:25.218630"], ["updated_at", "2016-01-25 16:59:25.218630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:25.220548"], ["updated_at", "2016-01-25 16:59:25.220548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:59:25.227093"], ["updated_at", "2016-01-25 16:59:25.227093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:25.228928"], ["updated_at", "2016-01-25 16:59:25.228928"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-25 16:59:25.236510"], ["updated_at", "2016-01-25 16:59:25.236510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-25 16:59:25.241305"], ["updated_at", "2016-01-25 16:59:25.241305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-25 16:59:25.247086"], ["updated_at", "2016-01-25 16:59:25.247086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:25.376318"], ["updated_at", "2016-01-25 16:59:25.376318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:25.417752"], ["updated_at", "2016-01-25 16:59:25.417752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-25 16:59:25.421188"], ["updated_at", "2016-01-25 16:59:25.421188"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:25.423398"], ["updated_at", "2016-01-25 16:59:25.423398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:25.428848"], ["updated_at", "2016-01-25 16:59:25.428848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-25 16:59:25.435924"], ["updated_at", "2016-01-25 16:59:25.435924"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:25.438346"], ["updated_at", "2016-01-25 16:59:25.438346"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-25 16:59:25.442263"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-25 16:59:25.456630"], ["updated_at", "2016-01-25 16:59:25.456630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:25.461020"], ["updated_at", "2016-01-25 16:59:25.461020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-25 16:59:25.464837"], ["updated_at", "2016-01-25 16:59:25.464837"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:25.466807"], ["updated_at", "2016-01-25 16:59:25.466807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:25.468981"], ["updated_at", "2016-01-25 16:59:25.468981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:25.499578"], ["updated_at", "2016-01-25 16:59:25.499578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-25 16:59:25.505072"], ["updated_at", "2016-01-25 16:59:25.505072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.5ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-25 16:59:25.571205"], ["updated_at", "2016-01-25 16:59:25.571205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:25.585180"], ["updated_at", "2016-01-25 16:59:25.585180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-25 16:59:25.588296"], ["updated_at", "2016-01-25 16:59:25.588296"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:25.590520"], ["updated_at", "2016-01-25 16:59:25.590520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) 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_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.9ms) DELETE FROM "pulitzer_post_type_content_element_types";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_type_content_element_types';  (1.0ms) DELETE FROM "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_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.2ms) 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_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.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:52.005743"], ["updated_at", "2016-01-25 16:59:52.005743"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-25 16:59:52.125201"], ["updated_at", "2016-01-25 16:59:52.125201"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.133627"], ["updated_at", "2016-01-25 16:59:52.133627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.136281"], ["updated_at", "2016-01-25 16:59:52.136281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-25 16:59:52.149268"], ["updated_at", "2016-01-25 16:59:52.149268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:59:52.151789"], ["updated_at", "2016-01-25 16:59:52.151789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-25 16:59:52.155495"], ["updated_at", "2016-01-25 16:59:52.155495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:59:52.157420"], ["updated_at", "2016-01-25 16:59:52.157420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-25 16:59:52.160486"], ["updated_at", "2016-01-25 16:59:52.160486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:59:52.162082"], ["updated_at", "2016-01-25 16:59:52.162082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:52.166489"], ["updated_at", "2016-01-25 16:59:52.166489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:52.151789"], ["updated_at", "2016-01-25 16:59:52.151789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:52.174975"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:52.157420"], ["updated_at", "2016-01-25 16:59:52.157420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:52.180752"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:52.162082"], ["updated_at", "2016-01-25 16:59:52.162082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:52.185017"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:52.188281"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:52.198255"], ["updated_at", "2016-01-25 16:59:52.198255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-25 16:59:52.201188"], ["updated_at", "2016-01-25 16:59:52.201188"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.203271"], ["updated_at", "2016-01-25 16:59:52.203271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.205085"], ["updated_at", "2016-01-25 16:59:52.205085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-25 16:59:52.208168"], ["updated_at", "2016-01-25 16:59:52.208168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:59:52.209701"], ["updated_at", "2016-01-25 16:59:52.209701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-25 16:59:52.212228"], ["updated_at", "2016-01-25 16:59:52.212228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:59:52.213836"], ["updated_at", "2016-01-25 16:59:52.213836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-25 16:59:52.216321"], ["updated_at", "2016-01-25 16:59:52.216321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:59:52.217725"], ["updated_at", "2016-01-25 16:59:52.217725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:52.219642"], ["updated_at", "2016-01-25 16:59:52.219642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:52.209701"], ["updated_at", "2016-01-25 16:59:52.209701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:52.226484"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:52.213836"], ["updated_at", "2016-01-25 16:59:52.213836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:52.230987"], ["id", 5]]  (1.9ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:52.217725"], ["updated_at", "2016-01-25 16:59:52.217725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:52.246618"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:52.249004"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.4ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:52.261371"], ["updated_at", "2016-01-25 16:59:52.261371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-25 16:59:52.268111"], ["updated_at", "2016-01-25 16:59:52.268111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-25 16:59:52.271155"], ["updated_at", "2016-01-25 16:59:52.271155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-25 16:59:52.273924"], ["updated_at", "2016-01-25 16:59:52.273924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-25 16:59:52.275305"], ["updated_at", "2016-01-25 16:59:52.275305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-25 16:59:52.277997"], ["updated_at", "2016-01-25 16:59:52.277997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-25 16:59:52.279282"], ["updated_at", "2016-01-25 16:59:52.279282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-25 16:59:52.284102"], ["updated_at", "2016-01-25 16:59:52.284102"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.286694"], ["updated_at", "2016-01-25 16:59:52.286694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-25 16:59:52.295836"], ["updated_at", "2016-01-25 16:59:52.295836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-25 16:59:52.300877"], ["updated_at", "2016-01-25 16:59:52.300877"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-25 16:59:52.308039"], ["updated_at", "2016-01-25 16:59:52.308039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:52.317325"], ["updated_at", "2016-01-25 16:59:52.317325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-25 16:59:52.320366"], ["updated_at", "2016-01-25 16:59:52.320366"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.322756"], ["updated_at", "2016-01-25 16:59:52.322756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.324648"], ["updated_at", "2016-01-25 16:59:52.324648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-25 16:59:52.327784"], ["updated_at", "2016-01-25 16:59:52.327784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:59:52.329686"], ["updated_at", "2016-01-25 16:59:52.329686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-25 16:59:52.333042"], ["updated_at", "2016-01-25 16:59:52.333042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:59:52.334626"], ["updated_at", "2016-01-25 16:59:52.334626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-25 16:59:52.337807"], ["updated_at", "2016-01-25 16:59:52.337807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:59:52.339444"], ["updated_at", "2016-01-25 16:59:52.339444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:59:52.342299"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:52.344126"], ["updated_at", "2016-01-25 16:59:52.344126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: a9562cdc-9fba-4457-acd2-f1200aae497a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:52.329686"], ["updated_at", "2016-01-25 16:59:52.329686"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:52.359185"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:52.334626"], ["updated_at", "2016-01-25 16:59:52.334626"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:52.364497"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:52.339444"], ["updated_at", "2016-01-25 16:59:52.339444"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:52.369276"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:52.371920"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a9562cdc-9fba-4457-acd2-f1200aae497a] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.02ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:52.386040"], ["updated_at", "2016-01-25 16:59:52.386040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-25 16:59:52.389210"], ["updated_at", "2016-01-25 16:59:52.389210"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.391834"], ["updated_at", "2016-01-25 16:59:52.391834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.393868"], ["updated_at", "2016-01-25 16:59:52.393868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-25 16:59:52.396854"], ["updated_at", "2016-01-25 16:59:52.396854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 16:59:52.398496"], ["updated_at", "2016-01-25 16:59:52.398496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-25 16:59:52.401377"], ["updated_at", "2016-01-25 16:59:52.401377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 16:59:52.403258"], ["updated_at", "2016-01-25 16:59:52.403258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-25 16:59:52.406028"], ["updated_at", "2016-01-25 16:59:52.406028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 16:59:52.407574"], ["updated_at", "2016-01-25 16:59:52.407574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 16:59:52.409991"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:52.411747"], ["updated_at", "2016-01-25 16:59:52.411747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 39f4f47e-1ed5-41ec-bccc-a5e13d5becac) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:52.398496"], ["updated_at", "2016-01-25 16:59:52.398496"]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:52.420397"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:52.403258"], ["updated_at", "2016-01-25 16:59:52.403258"]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:52.425547"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:52.407574"], ["updated_at", "2016-01-25 16:59:52.407574"]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 16:59:52.429937"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:52.431851"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39f4f47e-1ed5-41ec-bccc-a5e13d5becac] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.9ms Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-25 16:59:52.441160"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 16:59:52.442929"], ["updated_at", "2016-01-25 16:59:52.442929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:52.398496"], ["updated_at", "2016-01-25 16:59:52.398496"]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:59:52.451415"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 16:59:52.403258"], ["updated_at", "2016-01-25 16:59:52.403258"]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:59:52.456475"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 16:59:52.407574"], ["updated_at", "2016-01-25 16:59:52.407574"]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 16:59:52.461076"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 16:59:52.462940"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [86f6a549-5bc3-486e-81b0-ad9a9c3a9ba5] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.4ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-25 16:59:52.479124"], ["updated_at", "2016-01-25 16:59:52.479124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-25 16:59:52.490313"], ["updated_at", "2016-01-25 16:59:52.490313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-25 16:59:52.495797"], ["updated_at", "2016-01-25 16:59:52.495797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-25 16:59:52.500884"], ["updated_at", "2016-01-25 16:59:52.500884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:59:52.506918"], ["updated_at", "2016-01-25 16:59:52.506918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:52.508849"], ["updated_at", "2016-01-25 16:59:52.508849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 16:59:52.516091"], ["updated_at", "2016-01-25 16:59:52.516091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 16:59:52.518449"], ["updated_at", "2016-01-25 16:59:52.518449"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-25 16:59:52.526943"], ["updated_at", "2016-01-25 16:59:52.526943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-25 16:59:52.531901"], ["updated_at", "2016-01-25 16:59:52.531901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-25 16:59:52.537456"], ["updated_at", "2016-01-25 16:59:52.537456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:52.666486"], ["updated_at", "2016-01-25 16:59:52.666486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:52.706084"], ["updated_at", "2016-01-25 16:59:52.706084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-25 16:59:52.709468"], ["updated_at", "2016-01-25 16:59:52.709468"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.711678"], ["updated_at", "2016-01-25 16:59:52.711678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:52.717416"], ["updated_at", "2016-01-25 16:59:52.717416"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-25 16:59:52.723313"], ["updated_at", "2016-01-25 16:59:52.723313"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.726118"], ["updated_at", "2016-01-25 16:59:52.726118"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-25 16:59:52.729311"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-25 16:59:52.748448"], ["updated_at", "2016-01-25 16:59:52.748448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:52.754503"], ["updated_at", "2016-01-25 16:59:52.754503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-25 16:59:52.759029"], ["updated_at", "2016-01-25 16:59:52.759029"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.761513"], ["updated_at", "2016-01-25 16:59:52.761513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.763929"], ["updated_at", "2016-01-25 16:59:52.763929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:52.796766"], ["updated_at", "2016-01-25 16:59:52.796766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-25 16:59:52.804354"], ["updated_at", "2016-01-25 16:59:52.804354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-25 16:59:52.860097"], ["updated_at", "2016-01-25 16:59:52.860097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 16:59:52.877214"], ["updated_at", "2016-01-25 16:59:52.877214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-25 16:59:52.880018"], ["updated_at", "2016-01-25 16:59:52.880018"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 16:59:52.882200"], ["updated_at", "2016-01-25 16:59:52.882200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.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.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';  (0.7ms) 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_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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_tags';  (0.8ms) 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.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 17:00:52.308814"], ["updated_at", "2016-01-25 17:00:52.308814"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-25 17:00:52.423534"], ["updated_at", "2016-01-25 17:00:52.423534"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:52.431627"], ["updated_at", "2016-01-25 17:00:52.431627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:52.433926"], ["updated_at", "2016-01-25 17:00:52.433926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-25 17:00:52.447057"], ["updated_at", "2016-01-25 17:00:52.447057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 17:00:52.449656"], ["updated_at", "2016-01-25 17:00:52.449656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-25 17:00:52.452584"], ["updated_at", "2016-01-25 17:00:52.452584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 17:00:52.454067"], ["updated_at", "2016-01-25 17:00:52.454067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-25 17:00:52.456616"], ["updated_at", "2016-01-25 17:00:52.456616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 17:00:52.458390"], ["updated_at", "2016-01-25 17:00:52.458390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 17:00:52.462918"], ["updated_at", "2016-01-25 17:00:52.462918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 17:00:52.449656"], ["updated_at", "2016-01-25 17:00:52.449656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 17:00:52.472143"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 17:00:52.454067"], ["updated_at", "2016-01-25 17:00:52.454067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 17:00:52.479001"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 17:00:52.458390"], ["updated_at", "2016-01-25 17:00:52.458390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 17:00:52.484680"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 17:00:52.488371"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 17:00:52.498869"], ["updated_at", "2016-01-25 17:00:52.498869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-25 17:00:52.501596"], ["updated_at", "2016-01-25 17:00:52.501596"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:52.503500"], ["updated_at", "2016-01-25 17:00:52.503500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:52.505522"], ["updated_at", "2016-01-25 17:00:52.505522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-25 17:00:52.508487"], ["updated_at", "2016-01-25 17:00:52.508487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 17:00:52.510506"], ["updated_at", "2016-01-25 17:00:52.510506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-25 17:00:52.513437"], ["updated_at", "2016-01-25 17:00:52.513437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 17:00:52.514939"], ["updated_at", "2016-01-25 17:00:52.514939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-25 17:00:52.517654"], ["updated_at", "2016-01-25 17:00:52.517654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 17:00:52.519044"], ["updated_at", "2016-01-25 17:00:52.519044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 17:00:52.520879"], ["updated_at", "2016-01-25 17:00:52.520879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 17:00:52.510506"], ["updated_at", "2016-01-25 17:00:52.510506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 17:00:52.527823"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 17:00:52.514939"], ["updated_at", "2016-01-25 17:00:52.514939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 17:00:52.533455"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 17:00:52.519044"], ["updated_at", "2016-01-25 17:00:52.519044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 17:00:52.538025"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 17:00:52.540301"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 17:00:52.553487"], ["updated_at", "2016-01-25 17:00:52.553487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-25 17:00:52.561130"], ["updated_at", "2016-01-25 17:00:52.561130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-25 17:00:52.563887"], ["updated_at", "2016-01-25 17:00:52.563887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-25 17:00:52.566514"], ["updated_at", "2016-01-25 17:00:52.566514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-25 17:00:52.567870"], ["updated_at", "2016-01-25 17:00:52.567870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-25 17:00:52.570164"], ["updated_at", "2016-01-25 17:00:52.570164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-25 17:00:52.571420"], ["updated_at", "2016-01-25 17:00:52.571420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-25 17:00:52.576389"], ["updated_at", "2016-01-25 17:00:52.576389"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:52.578234"], ["updated_at", "2016-01-25 17:00:52.578234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-25 17:00:52.585885"], ["updated_at", "2016-01-25 17:00:52.585885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-25 17:00:52.591051"], ["updated_at", "2016-01-25 17:00:52.591051"]]  (0.1ms) RELEASE SAVEPOINT active_record_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 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-25 17:00:52.597679"], ["updated_at", "2016-01-25 17:00:52.597679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 17:00:52.605891"], ["updated_at", "2016-01-25 17:00:52.605891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-25 17:00:52.609327"], ["updated_at", "2016-01-25 17:00:52.609327"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:52.612601"], ["updated_at", "2016-01-25 17:00:52.612601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:52.614356"], ["updated_at", "2016-01-25 17:00:52.614356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-25 17:00:52.617279"], ["updated_at", "2016-01-25 17:00:52.617279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 17:00:52.618994"], ["updated_at", "2016-01-25 17:00:52.618994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-25 17:00:52.622097"], ["updated_at", "2016-01-25 17:00:52.622097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 17:00:52.623781"], ["updated_at", "2016-01-25 17:00:52.623781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-25 17:00:52.626753"], ["updated_at", "2016-01-25 17:00:52.626753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 17:00:52.628685"], ["updated_at", "2016-01-25 17:00:52.628685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 17:00:52.631337"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 17:00:52.633155"], ["updated_at", "2016-01-25 17:00:52.633155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 3097ab3d-5c7d-4186-9654-46a65c4752ed) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 17:00:52.618994"], ["updated_at", "2016-01-25 17:00:52.618994"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 17:00:52.647282"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 17:00:52.623781"], ["updated_at", "2016-01-25 17:00:52.623781"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 17:00:52.651825"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 17:00:52.628685"], ["updated_at", "2016-01-25 17:00:52.628685"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 17:00:52.656185"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 17:00:52.658046"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3097ab3d-5c7d-4186-9654-46a65c4752ed] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.01ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 17:00:52.670965"], ["updated_at", "2016-01-25 17:00:52.670965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-25 17:00:52.673912"], ["updated_at", "2016-01-25 17:00:52.673912"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:52.676287"], ["updated_at", "2016-01-25 17:00:52.676287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:52.678341"], ["updated_at", "2016-01-25 17:00:52.678341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-25 17:00:52.681160"], ["updated_at", "2016-01-25 17:00:52.681160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-25 17:00:52.682602"], ["updated_at", "2016-01-25 17:00:52.682602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-25 17:00:52.685310"], ["updated_at", "2016-01-25 17:00:52.685310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-25 17:00:52.686951"], ["updated_at", "2016-01-25 17:00:52.686951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-25 17:00:52.689941"], ["updated_at", "2016-01-25 17:00:52.689941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-25 17:00:52.691712"], ["updated_at", "2016-01-25 17:00:52.691712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-25 17:00:52.694536"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 17:00:52.696198"], ["updated_at", "2016-01-25 17:00:52.696198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 67699a81-c93f-4ab2-9d42-e66c9ad5f5b1) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 17:00:52.682602"], ["updated_at", "2016-01-25 17:00:52.682602"]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 17:00:52.704999"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 17:00:52.686951"], ["updated_at", "2016-01-25 17:00:52.686951"]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 17:00:52.709409"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 17:00:52.691712"], ["updated_at", "2016-01-25 17:00:52.691712"]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-25 17:00:52.716688"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 17:00:52.718856"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [67699a81-c93f-4ab2-9d42-e66c9ad5f5b1] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.71ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-25 17:00:52.725852"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-25 17:00:52.728207"], ["updated_at", "2016-01-25 17:00:52.728207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: e3d32eca-6783-49f9-bc9c-cf1e13861e83) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-25 17:00:52.682602"], ["updated_at", "2016-01-25 17:00:52.682602"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 17:00:52.736252"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-25 17:00:52.686951"], ["updated_at", "2016-01-25 17:00:52.686951"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 17:00:52.740422"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-25 17:00:52.691712"], ["updated_at", "2016-01-25 17:00:52.691712"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-25 17:00:52.746904"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-25 17:00:52.749605"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e3d32eca-6783-49f9-bc9c-cf1e13861e83] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.14ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-25 17:00:52.765104"], ["updated_at", "2016-01-25 17:00:52.765104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-25 17:00:52.775410"], ["updated_at", "2016-01-25 17:00:52.775410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-25 17:00:52.780754"], ["updated_at", "2016-01-25 17:00:52.780754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-25 17:00:52.785669"], ["updated_at", "2016-01-25 17:00:52.785669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 17:00:52.791077"], ["updated_at", "2016-01-25 17:00:52.791077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 17:00:52.792843"], ["updated_at", "2016-01-25 17:00:52.792843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-25 17:00:52.801088"], ["updated_at", "2016-01-25 17:00:52.801088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-25 17:00:52.802915"], ["updated_at", "2016-01-25 17:00:52.802915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-25 17:00:52.808505"], ["updated_at", "2016-01-25 17:00:52.808505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-25 17:00:52.815633"], ["updated_at", "2016-01-25 17:00:52.815633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-25 17:00:52.820928"], ["updated_at", "2016-01-25 17:00:52.820928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 17:00:52.949690"], ["updated_at", "2016-01-25 17:00:52.949690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 17:00:52.989566"], ["updated_at", "2016-01-25 17:00:52.989566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-25 17:00:52.993142"], ["updated_at", "2016-01-25 17:00:52.993142"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:52.995303"], ["updated_at", "2016-01-25 17:00:52.995303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 17:00:53.000959"], ["updated_at", "2016-01-25 17:00:53.000959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-25 17:00:53.005140"], ["updated_at", "2016-01-25 17:00:53.005140"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:53.007272"], ["updated_at", "2016-01-25 17:00:53.007272"]]  (0.2ms) 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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.5ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-25 17:00:53.012291"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.9ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-25 17:00:53.027030"], ["updated_at", "2016-01-25 17:00:53.027030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 17:00:53.034864"], ["updated_at", "2016-01-25 17:00:53.034864"]]  (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 1 [["slug", "winterfell-news-9"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-25 17:00:53.038818"], ["updated_at", "2016-01-25 17:00:53.038818"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:53.040950"], ["updated_at", "2016-01-25 17:00:53.040950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:53.043473"], ["updated_at", "2016-01-25 17:00:53.043473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 17:00:53.073774"], ["updated_at", "2016-01-25 17:00:53.073774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-25 17:00:53.078701"], ["updated_at", "2016-01-25 17:00:53.078701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-25 17:00:53.139324"], ["updated_at", "2016-01-25 17:00:53.139324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-25 17:00:53.156139"], ["updated_at", "2016-01-25 17:00:53.156139"]]  (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 1 [["slug", "winterfell-news-10"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-25 17:00:53.159531"], ["updated_at", "2016-01-25 17:00:53.159531"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-25 17:00:53.163334"], ["updated_at", "2016-01-25 17:00:53.163334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) 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.0ms) DELETE FROM "pulitzer_content_elements";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements';  (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.1ms) 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.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.2ms) 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_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.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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';  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 19:53:08.331595"], ["updated_at", "2016-01-28 19:53:08.331595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-28 19:53:08.452741"], ["updated_at", "2016-01-28 19:53:08.452741"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 19:53:08.463043"], ["updated_at", "2016-01-28 19:53:08.463043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 19:53:08.466098"], ["updated_at", "2016-01-28 19:53:08.466098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-28 19:53:08.478566"], ["updated_at", "2016-01-28 19:53:08.478566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-28 19:53:08.480987"], ["updated_at", "2016-01-28 19:53:08.480987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-28 19:53:08.483939"], ["updated_at", "2016-01-28 19:53:08.483939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-28 19:53:08.485544"], ["updated_at", "2016-01-28 19:53:08.485544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-28 19:53:08.488131"], ["updated_at", "2016-01-28 19:53:08.488131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-28 19:53:08.489561"], ["updated_at", "2016-01-28 19:53:08.489561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 19:53:08.494409"], ["updated_at", "2016-01-28 19:53:08.494409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 19:53:08.480987"], ["updated_at", "2016-01-28 19:53:08.480987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 19:53:08.502771"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 19:53:08.485544"], ["updated_at", "2016-01-28 19:53:08.485544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 19:53:08.508907"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 19:53:08.489561"], ["updated_at", "2016-01-28 19:53:08.489561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 19:53:08.513804"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 19:53:08.517075"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 19:53:08.527387"], ["updated_at", "2016-01-28 19:53:08.527387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-28 19:53:08.530108"], ["updated_at", "2016-01-28 19:53:08.530108"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 19:53:08.532180"], ["updated_at", "2016-01-28 19:53:08.532180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 19:53:08.533776"], ["updated_at", "2016-01-28 19:53:08.533776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-28 19:53:08.536514"], ["updated_at", "2016-01-28 19:53:08.536514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-28 19:53:08.538064"], ["updated_at", "2016-01-28 19:53:08.538064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-28 19:53:08.542739"], ["updated_at", "2016-01-28 19:53:08.542739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-28 19:53:08.544645"], ["updated_at", "2016-01-28 19:53:08.544645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-28 19:53:08.547912"], ["updated_at", "2016-01-28 19:53:08.547912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-28 19:53:08.549560"], ["updated_at", "2016-01-28 19:53:08.549560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 19:53:08.551621"], ["updated_at", "2016-01-28 19:53:08.551621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 19:53:08.538064"], ["updated_at", "2016-01-28 19:53:08.538064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 19:53:08.557860"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 19:53:08.544645"], ["updated_at", "2016-01-28 19:53:08.544645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 19:53:08.562952"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 19:53:08.549560"], ["updated_at", "2016-01-28 19:53:08.549560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 19:53:08.568638"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 19:53:08.571007"], ["id", 3]]  (0.1ms) 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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 19:53:08.584063"], ["updated_at", "2016-01-28 19:53:08.584063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-28 19:53:08.592109"], ["updated_at", "2016-01-28 19:53:08.592109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-28 19:53:08.594513"], ["updated_at", "2016-01-28 19:53:08.594513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-28 19:53:08.597029"], ["updated_at", "2016-01-28 19:53:08.597029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-28 19:53:08.598318"], ["updated_at", "2016-01-28 19:53:08.598318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-28 19:53:08.600473"], ["updated_at", "2016-01-28 19:53:08.600473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-28 19:53:08.601866"], ["updated_at", "2016-01-28 19:53:08.601866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-28 19:53:08.606453"], ["updated_at", "2016-01-28 19:53:08.606453"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 19:53:08.608192"], ["updated_at", "2016-01-28 19:53:08.608192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-28 19:53:08.616732"], ["updated_at", "2016-01-28 19:53:08.616732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-28 19:53:08.621797"], ["updated_at", "2016-01-28 19:53:08.621797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-28 19:53:08.626193"], ["updated_at", "2016-01-28 19:53:08.626193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 19:53:08.634274"], ["updated_at", "2016-01-28 19:53:08.634274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-28 19:53:08.636784"], ["updated_at", "2016-01-28 19:53:08.636784"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 19:53:08.638609"], ["updated_at", "2016-01-28 19:53:08.638609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 19:53:08.639986"], ["updated_at", "2016-01-28 19:53:08.639986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-28 19:53:08.643816"], ["updated_at", "2016-01-28 19:53:08.643816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-28 19:53:08.645750"], ["updated_at", "2016-01-28 19:53:08.645750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-28 19:53:08.648563"], ["updated_at", "2016-01-28 19:53:08.648563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-28 19:53:08.650037"], ["updated_at", "2016-01-28 19:53:08.650037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-28 19:53:08.652657"], ["updated_at", "2016-01-28 19:53:08.652657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-28 19:53:08.654097"], ["updated_at", "2016-01-28 19:53:08.654097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-28 19:53:08.656386"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 19:53:08.657843"], ["updated_at", "2016-01-28 19:53:08.657843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c99c9fd4-023e-4e1b-9c97-8fbffc3b212e) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 19:53:08.645750"], ["updated_at", "2016-01-28 19:53:08.645750"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 19:53:08.672761"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 19:53:08.650037"], ["updated_at", "2016-01-28 19:53:08.650037"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 19:53:08.678641"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 19:53:08.654097"], ["updated_at", "2016-01-28 19:53:08.654097"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 19:53:08.683236"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 19:53:08.685218"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c99c9fd4-023e-4e1b-9c97-8fbffc3b212e] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.88ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 19:53:08.698916"], ["updated_at", "2016-01-28 19:53:08.698916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-28 19:53:08.701841"], ["updated_at", "2016-01-28 19:53:08.701841"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 19:53:08.703798"], ["updated_at", "2016-01-28 19:53:08.703798"]]  (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", "2016-01-28 19:53:08.705596"], ["updated_at", "2016-01-28 19:53:08.705596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-28 19:53:08.709149"], ["updated_at", "2016-01-28 19:53:08.709149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-28 19:53:08.711048"], ["updated_at", "2016-01-28 19:53:08.711048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-28 19:53:08.714075"], ["updated_at", "2016-01-28 19:53:08.714075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-28 19:53:08.715646"], ["updated_at", "2016-01-28 19:53:08.715646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-28 19:53:08.718229"], ["updated_at", "2016-01-28 19:53:08.718229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-28 19:53:08.719648"], ["updated_at", "2016-01-28 19:53:08.719648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-28 19:53:08.721821"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 19:53:08.723414"], ["updated_at", "2016-01-28 19:53:08.723414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 259b7f65-f8c2-408a-bef8-8dadb75e86d5) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 19:53:08.711048"], ["updated_at", "2016-01-28 19:53:08.711048"]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 19:53:08.731564"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 19:53:08.715646"], ["updated_at", "2016-01-28 19:53:08.715646"]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 19:53:08.737137"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 19:53:08.719648"], ["updated_at", "2016-01-28 19:53:08.719648"]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 19:53:08.741411"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 19:53:08.744126"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [259b7f65-f8c2-408a-bef8-8dadb75e86d5] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.56ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-28 19:53:08.751421"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 19:53:08.753010"], ["updated_at", "2016-01-28 19:53:08.753010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 4e92c422-ff33-4a5c-90ec-7ac8f9b16734) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 19:53:08.711048"], ["updated_at", "2016-01-28 19:53:08.711048"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-28 19:53:08.761611"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 19:53:08.715646"], ["updated_at", "2016-01-28 19:53:08.715646"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-28 19:53:08.765831"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 19:53:08.719648"], ["updated_at", "2016-01-28 19:53:08.719648"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-28 19:53:08.769968"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 19:53:08.771785"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e92c422-ff33-4a5c-90ec-7ac8f9b16734] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.3ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-28 19:53:08.790476"], ["updated_at", "2016-01-28 19:53:08.790476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-28 19:53:08.808637"], ["updated_at", "2016-01-28 19:53:08.808637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-28 19:53:08.815555"], ["updated_at", "2016-01-28 19:53:08.815555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-28 19:53:08.822449"], ["updated_at", "2016-01-28 19:53:08.822449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-28 19:53:08.829029"], ["updated_at", "2016-01-28 19:53:08.829029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-28 19:53:08.830975"], ["updated_at", "2016-01-28 19:53:08.830975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-28 19:53:08.850651"], ["updated_at", "2016-01-28 19:53:08.850651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-28 19:53:08.854459"], ["updated_at", "2016-01-28 19:53:08.854459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-28 19:53:08.865097"], ["updated_at", "2016-01-28 19:53:08.865097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-28 19:53:08.870932"], ["updated_at", "2016-01-28 19:53:08.870932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-28 19:53:08.878664"], ["updated_at", "2016-01-28 19:53:08.878664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 19:53:09.034997"], ["updated_at", "2016-01-28 19:53:09.034997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 19:53:09.051508"], ["updated_at", "2016-01-28 19:53:09.051508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-28 19:53:09.054948"], ["updated_at", "2016-01-28 19:53:09.054948"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 19:53:09.057642"], ["updated_at", "2016-01-28 19:53:09.057642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 19:53:09.064412"], ["updated_at", "2016-01-28 19:53:09.064412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.5ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-28 19:53:09.069677"], ["updated_at", "2016-01-28 19:53:09.069677"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 19:53:09.073416"], ["updated_at", "2016-01-28 19:53:09.073416"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-28 19:53:09.078531"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.6ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-28 19:53:09.096022"], ["updated_at", "2016-01-28 19:53:09.096022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 19:53:09.107790"], ["updated_at", "2016-01-28 19:53:09.107790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-28 19:53:09.111686"], ["updated_at", "2016-01-28 19:53:09.111686"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 19:53:09.113775"], ["updated_at", "2016-01-28 19:53:09.113775"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 19:53:09.117260"], ["updated_at", "2016-01-28 19:53:09.117260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 19:53:09.141946"], ["updated_at", "2016-01-28 19:53:09.141946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-28 19:53:09.145602"], ["updated_at", "2016-01-28 19:53:09.145602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.4ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-28 19:53:09.194472"], ["updated_at", "2016-01-28 19:53:09.194472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 19:53:09.211015"], ["updated_at", "2016-01-28 19:53:09.211015"]]  (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 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-28 19:53:09.214951"], ["updated_at", "2016-01-28 19:53:09.214951"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 19:53:09.217919"], ["updated_at", "2016-01-28 19:53:09.217919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.8ms) 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_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.9ms) 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_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_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.2ms) 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_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.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:00:38.528064"], ["updated_at", "2016-01-28 20:00:38.528064"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-28 20:00:38.644342"], ["updated_at", "2016-01-28 20:00:38.644342"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:38.654400"], ["updated_at", "2016-01-28 20:00:38.654400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:38.657347"], ["updated_at", "2016-01-28 20:00:38.657347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-28 20:00:38.671489"], ["updated_at", "2016-01-28 20:00:38.671489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-28 20:00:38.674023"], ["updated_at", "2016-01-28 20:00:38.674023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-28 20:00:38.677224"], ["updated_at", "2016-01-28 20:00:38.677224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-28 20:00:38.678847"], ["updated_at", "2016-01-28 20:00:38.678847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-28 20:00:38.681405"], ["updated_at", "2016-01-28 20:00:38.681405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-28 20:00:38.682792"], ["updated_at", "2016-01-28 20:00:38.682792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 20:00:38.687572"], ["updated_at", "2016-01-28 20:00:38.687572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:00:38.674023"], ["updated_at", "2016-01-28 20:00:38.674023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:00:38.695877"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 20:00:38.678847"], ["updated_at", "2016-01-28 20:00:38.678847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:00:38.701468"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 20:00:38.682792"], ["updated_at", "2016-01-28 20:00:38.682792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:00:38.705705"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 20:00:38.709118"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:00:38.719632"], ["updated_at", "2016-01-28 20:00:38.719632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-28 20:00:38.722549"], ["updated_at", "2016-01-28 20:00:38.722549"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:38.724526"], ["updated_at", "2016-01-28 20:00:38.724526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:38.726442"], ["updated_at", "2016-01-28 20:00:38.726442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-28 20:00:38.729020"], ["updated_at", "2016-01-28 20:00:38.729020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-28 20:00:38.730483"], ["updated_at", "2016-01-28 20:00:38.730483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-28 20:00:38.733055"], ["updated_at", "2016-01-28 20:00:38.733055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-28 20:00:38.734496"], ["updated_at", "2016-01-28 20:00:38.734496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-28 20:00:38.737042"], ["updated_at", "2016-01-28 20:00:38.737042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-28 20:00:38.738606"], ["updated_at", "2016-01-28 20:00:38.738606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 20:00:38.740746"], ["updated_at", "2016-01-28 20:00:38.740746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:00:38.730483"], ["updated_at", "2016-01-28 20:00:38.730483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:00:38.748552"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 20:00:38.734496"], ["updated_at", "2016-01-28 20:00:38.734496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:00:38.755464"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 20:00:38.738606"], ["updated_at", "2016-01-28 20:00:38.738606"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:00:38.763224"], ["id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 20:00:38.767849"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:00:38.780343"], ["updated_at", "2016-01-28 20:00:38.780343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-28 20:00:38.789384"], ["updated_at", "2016-01-28 20:00:38.789384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-28 20:00:38.792018"], ["updated_at", "2016-01-28 20:00:38.792018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-28 20:00:38.794747"], ["updated_at", "2016-01-28 20:00:38.794747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-28 20:00:38.796147"], ["updated_at", "2016-01-28 20:00:38.796147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-28 20:00:38.799563"], ["updated_at", "2016-01-28 20:00:38.799563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-28 20:00:38.802023"], ["updated_at", "2016-01-28 20:00:38.802023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-28 20:00:38.809902"], ["updated_at", "2016-01-28 20:00:38.809902"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:38.812570"], ["updated_at", "2016-01-28 20:00:38.812570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.3ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-28 20:00:38.826908"], ["updated_at", "2016-01-28 20:00:38.826908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-28 20:00:38.833310"], ["updated_at", "2016-01-28 20:00:38.833310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-28 20:00:38.839207"], ["updated_at", "2016-01-28 20:00:38.839207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:00:38.848867"], ["updated_at", "2016-01-28 20:00:38.848867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-28 20:00:38.852411"], ["updated_at", "2016-01-28 20:00:38.852411"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:38.855541"], ["updated_at", "2016-01-28 20:00:38.855541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:38.857902"], ["updated_at", "2016-01-28 20:00:38.857902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-28 20:00:38.861510"], ["updated_at", "2016-01-28 20:00:38.861510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-28 20:00:38.863683"], ["updated_at", "2016-01-28 20:00:38.863683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-28 20:00:38.867706"], ["updated_at", "2016-01-28 20:00:38.867706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-28 20:00:38.869694"], ["updated_at", "2016-01-28 20:00:38.869694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-28 20:00:38.873224"], ["updated_at", "2016-01-28 20:00:38.873224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-28 20:00:38.875172"], ["updated_at", "2016-01-28 20:00:38.875172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-28 20:00:38.877850"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 20:00:38.880163"], ["updated_at", "2016-01-28 20:00:38.880163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 92915849-b535-4901-87f0-4624843b1692) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:00:38.863683"], ["updated_at", "2016-01-28 20:00:38.863683"]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:00:38.894865"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 20:00:38.869694"], ["updated_at", "2016-01-28 20:00:38.869694"]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:00:38.900756"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 20:00:38.875172"], ["updated_at", "2016-01-28 20:00:38.875172"]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:00:38.905903"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 20:00:38.907780"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [92915849-b535-4901-87f0-4624843b1692] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.78ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:00:38.919475"], ["updated_at", "2016-01-28 20:00:38.919475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-28 20:00:38.922262"], ["updated_at", "2016-01-28 20:00:38.922262"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:38.924118"], ["updated_at", "2016-01-28 20:00:38.924118"]]  (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", "2016-01-28 20:00:38.925898"], ["updated_at", "2016-01-28 20:00:38.925898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-28 20:00:38.928773"], ["updated_at", "2016-01-28 20:00:38.928773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-28 20:00:38.930343"], ["updated_at", "2016-01-28 20:00:38.930343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-28 20:00:38.932908"], ["updated_at", "2016-01-28 20:00:38.932908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-28 20:00:38.934307"], ["updated_at", "2016-01-28 20:00:38.934307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-28 20:00:38.937450"], ["updated_at", "2016-01-28 20:00:38.937450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-28 20:00:38.939119"], ["updated_at", "2016-01-28 20:00:38.939119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-28 20:00:38.941302"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 20:00:38.942705"], ["updated_at", "2016-01-28 20:00:38.942705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:00:38.930343"], ["updated_at", "2016-01-28 20:00:38.930343"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:00:38.950592"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 20:00:38.934307"], ["updated_at", "2016-01-28 20:00:38.934307"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:00:38.957582"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 20:00:38.939119"], ["updated_at", "2016-01-28 20:00:38.939119"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:00:38.962513"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 20:00:38.964396"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2030c8dd-9e5c-4f72-a0bf-6adf2a4c76da] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.18ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-28 20:00:38.971455"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 20:00:38.972955"], ["updated_at", "2016-01-28 20:00:38.972955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 3990db77-d40a-467e-8a3a-ec359bd53824) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:00:38.930343"], ["updated_at", "2016-01-28 20:00:38.930343"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-28 20:00:38.980460"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 20:00:38.934307"], ["updated_at", "2016-01-28 20:00:38.934307"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-28 20:00:38.985380"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 20:00:38.939119"], ["updated_at", "2016-01-28 20:00:38.939119"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-28 20:00:38.991094"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 20:00:38.993363"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3990db77-d40a-467e-8a3a-ec359bd53824] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.88ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-28 20:00:39.009122"], ["updated_at", "2016-01-28 20:00:39.009122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-28 20:00:39.023425"], ["updated_at", "2016-01-28 20:00:39.023425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-28 20:00:39.028353"], ["updated_at", "2016-01-28 20:00:39.028353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-28 20:00:39.033210"], ["updated_at", "2016-01-28 20:00:39.033210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-28 20:00:39.039587"], ["updated_at", "2016-01-28 20:00:39.039587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:00:39.042453"], ["updated_at", "2016-01-28 20:00:39.042453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-28 20:00:39.049465"], ["updated_at", "2016-01-28 20:00:39.049465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:00:39.051321"], ["updated_at", "2016-01-28 20:00:39.051321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-28 20:00:39.057506"], ["updated_at", "2016-01-28 20:00:39.057506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-28 20:00:39.063384"], ["updated_at", "2016-01-28 20:00:39.063384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-28 20:00:39.068991"], ["updated_at", "2016-01-28 20:00:39.068991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:00:39.208791"], ["updated_at", "2016-01-28 20:00:39.208791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:00:39.246382"], ["updated_at", "2016-01-28 20:00:39.246382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-28 20:00:39.249564"], ["updated_at", "2016-01-28 20:00:39.249564"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:39.252236"], ["updated_at", "2016-01-28 20:00:39.252236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:00:39.257790"], ["updated_at", "2016-01-28 20:00:39.257790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-28 20:00:39.263801"], ["updated_at", "2016-01-28 20:00:39.263801"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:39.266772"], ["updated_at", "2016-01-28 20:00:39.266772"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-28 20:00:39.271903"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-28 20:00:39.287216"], ["updated_at", "2016-01-28 20:00:39.287216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:00:39.292737"], ["updated_at", "2016-01-28 20:00:39.292737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-28 20:00:39.296199"], ["updated_at", "2016-01-28 20:00:39.296199"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:39.298478"], ["updated_at", "2016-01-28 20:00:39.298478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:39.300742"], ["updated_at", "2016-01-28 20:00:39.300742"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:00:39.329362"], ["updated_at", "2016-01-28 20:00:39.329362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-28 20:00:39.334055"], ["updated_at", "2016-01-28 20:00:39.334055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-28 20:00:39.387922"], ["updated_at", "2016-01-28 20:00:39.387922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:00:39.404907"], ["updated_at", "2016-01-28 20:00:39.404907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-28 20:00:39.407789"], ["updated_at", "2016-01-28 20:00:39.407789"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:39.409955"], ["updated_at", "2016-01-28 20:00:39.409955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-01-28 20:00:39.430710"], ["updated_at", "2016-01-28 20:00:39.430710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:00:39.433431"], ["updated_at", "2016-01-28 20:00:39.433431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-01-28 20:00:39.437038"], ["updated_at", "2016-01-28 20:00:39.437038"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:00:39.440233"], ["updated_at", "2016-01-28 20:00:39.440233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) 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_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';  (1.0ms) 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_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_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.2ms) 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_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.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:01:06.088600"], ["updated_at", "2016-01-28 20:01:06.088600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-01-28 20:01:06.207917"], ["updated_at", "2016-01-28 20:01:06.207917"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.216243"], ["updated_at", "2016-01-28 20:01:06.216243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.218656"], ["updated_at", "2016-01-28 20:01:06.218656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-01-28 20:01:06.230921"], ["updated_at", "2016-01-28 20:01:06.230921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-28 20:01:06.233401"], ["updated_at", "2016-01-28 20:01:06.233401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-01-28 20:01:06.236320"], ["updated_at", "2016-01-28 20:01:06.236320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-28 20:01:06.237752"], ["updated_at", "2016-01-28 20:01:06.237752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-01-28 20:01:06.240289"], ["updated_at", "2016-01-28 20:01:06.240289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-28 20:01:06.241651"], ["updated_at", "2016-01-28 20:01:06.241651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 20:01:06.246068"], ["updated_at", "2016-01-28 20:01:06.246068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:01:06.233401"], ["updated_at", "2016-01-28 20:01:06.233401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:01:06.254466"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 20:01:06.237752"], ["updated_at", "2016-01-28 20:01:06.237752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:01:06.259637"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 20:01:06.241651"], ["updated_at", "2016-01-28 20:01:06.241651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:01:06.263876"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 20:01:06.269059"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:01:06.280764"], ["updated_at", "2016-01-28 20:01:06.280764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-01-28 20:01:06.283709"], ["updated_at", "2016-01-28 20:01:06.283709"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.286070"], ["updated_at", "2016-01-28 20:01:06.286070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.287852"], ["updated_at", "2016-01-28 20:01:06.287852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-01-28 20:01:06.290870"], ["updated_at", "2016-01-28 20:01:06.290870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-28 20:01:06.292573"], ["updated_at", "2016-01-28 20:01:06.292573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-01-28 20:01:06.295462"], ["updated_at", "2016-01-28 20:01:06.295462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-28 20:01:06.297280"], ["updated_at", "2016-01-28 20:01:06.297280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-01-28 20:01:06.300312"], ["updated_at", "2016-01-28 20:01:06.300312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-28 20:01:06.301781"], ["updated_at", "2016-01-28 20:01:06.301781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 20:01:06.304093"], ["updated_at", "2016-01-28 20:01:06.304093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:01:06.292573"], ["updated_at", "2016-01-28 20:01:06.292573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:01:06.311959"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 20:01:06.297280"], ["updated_at", "2016-01-28 20:01:06.297280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:01:06.317529"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 20:01:06.301781"], ["updated_at", "2016-01-28 20:01:06.301781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:01:06.324232"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 20:01:06.326832"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:01:06.339546"], ["updated_at", "2016-01-28 20:01:06.339546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-01-28 20:01:06.347437"], ["updated_at", "2016-01-28 20:01:06.347437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-01-28 20:01:06.349839"], ["updated_at", "2016-01-28 20:01:06.349839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-01-28 20:01:06.352323"], ["updated_at", "2016-01-28 20:01:06.352323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-01-28 20:01:06.353781"], ["updated_at", "2016-01-28 20:01:06.353781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-01-28 20:01:06.356180"], ["updated_at", "2016-01-28 20:01:06.356180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-01-28 20:01:06.357849"], ["updated_at", "2016-01-28 20:01:06.357849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-01-28 20:01:06.363068"], ["updated_at", "2016-01-28 20:01:06.363068"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.364957"], ["updated_at", "2016-01-28 20:01:06.364957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-01-28 20:01:06.373904"], ["updated_at", "2016-01-28 20:01:06.373904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-01-28 20:01:06.380354"], ["updated_at", "2016-01-28 20:01:06.380354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-01-28 20:01:06.384849"], ["updated_at", "2016-01-28 20:01:06.384849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:01:06.392498"], ["updated_at", "2016-01-28 20:01:06.392498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-01-28 20:01:06.395875"], ["updated_at", "2016-01-28 20:01:06.395875"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.397903"], ["updated_at", "2016-01-28 20:01:06.397903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.399693"], ["updated_at", "2016-01-28 20:01:06.399693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-01-28 20:01:06.402578"], ["updated_at", "2016-01-28 20:01:06.402578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-28 20:01:06.404191"], ["updated_at", "2016-01-28 20:01:06.404191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-01-28 20:01:06.407037"], ["updated_at", "2016-01-28 20:01:06.407037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-28 20:01:06.408567"], ["updated_at", "2016-01-28 20:01:06.408567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-01-28 20:01:06.411224"], ["updated_at", "2016-01-28 20:01:06.411224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-28 20:01:06.412641"], ["updated_at", "2016-01-28 20:01:06.412641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-28 20:01:06.414904"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 20:01:06.416358"], ["updated_at", "2016-01-28 20:01:06.416358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c72f7005-7398-44c1-8bd1-4f07cd3cf2e7) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:01:06.404191"], ["updated_at", "2016-01-28 20:01:06.404191"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:01:06.428705"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 20:01:06.408567"], ["updated_at", "2016-01-28 20:01:06.408567"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:01:06.433422"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 20:01:06.412641"], ["updated_at", "2016-01-28 20:01:06.412641"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:01:06.439929"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 20:01:06.442355"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c72f7005-7398-44c1-8bd1-4f07cd3cf2e7] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.16ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:01:06.455581"], ["updated_at", "2016-01-28 20:01:06.455581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-01-28 20:01:06.458479"], ["updated_at", "2016-01-28 20:01:06.458479"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.460403"], ["updated_at", "2016-01-28 20:01:06.460403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.462392"], ["updated_at", "2016-01-28 20:01:06.462392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-01-28 20:01:06.465046"], ["updated_at", "2016-01-28 20:01:06.465046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-01-28 20:01:06.466535"], ["updated_at", "2016-01-28 20:01:06.466535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-01-28 20:01:06.469365"], ["updated_at", "2016-01-28 20:01:06.469365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-01-28 20:01:06.471844"], ["updated_at", "2016-01-28 20:01:06.471844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-01-28 20:01:06.475268"], ["updated_at", "2016-01-28 20:01:06.475268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-01-28 20:01:06.476932"], ["updated_at", "2016-01-28 20:01:06.476932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-01-28 20:01:06.479578"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 20:01:06.481317"], ["updated_at", "2016-01-28 20:01:06.481317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 4e8f71da-c58f-43ee-821a-c15e54c132bf) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:01:06.466535"], ["updated_at", "2016-01-28 20:01:06.466535"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:01:06.490029"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 20:01:06.471844"], ["updated_at", "2016-01-28 20:01:06.471844"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:01:06.496574"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 20:01:06.476932"], ["updated_at", "2016-01-28 20:01:06.476932"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-01-28 20:01:06.501580"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 20:01:06.503817"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e8f71da-c58f-43ee-821a-c15e54c132bf] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.16ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-01-28 20:01:06.511808"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-01-28 20:01:06.513693"], ["updated_at", "2016-01-28 20:01:06.513693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 5070a7f4-8675-4e7c-9a6c-f134ee6f5637) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:01:06.466535"], ["updated_at", "2016-01-28 20:01:06.466535"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-28 20:01:06.521878"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-01-28 20:01:06.471844"], ["updated_at", "2016-01-28 20:01:06.471844"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-28 20:01:06.526247"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-01-28 20:01:06.476932"], ["updated_at", "2016-01-28 20:01:06.476932"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-01-28 20:01:06.530368"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-01-28 20:01:06.532251"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5070a7f4-8675-4e7c-9a6c-f134ee6f5637] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.46ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-01-28 20:01:06.549424"], ["updated_at", "2016-01-28 20:01:06.549424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-01-28 20:01:06.560610"], ["updated_at", "2016-01-28 20:01:06.560610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-01-28 20:01:06.566043"], ["updated_at", "2016-01-28 20:01:06.566043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-01-28 20:01:06.572130"], ["updated_at", "2016-01-28 20:01:06.572130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-28 20:01:06.578772"], ["updated_at", "2016-01-28 20:01:06.578772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:01:06.581177"], ["updated_at", "2016-01-28 20:01:06.581177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-01-28 20:01:06.588170"], ["updated_at", "2016-01-28 20:01:06.588170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-01-28 20:01:06.590405"], ["updated_at", "2016-01-28 20:01:06.590405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-01-28 20:01:06.596185"], ["updated_at", "2016-01-28 20:01:06.596185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-01-28 20:01:06.601118"], ["updated_at", "2016-01-28 20:01:06.601118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-01-28 20:01:06.606918"], ["updated_at", "2016-01-28 20:01:06.606918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:01:06.748294"], ["updated_at", "2016-01-28 20:01:06.748294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:01:06.785370"], ["updated_at", "2016-01-28 20:01:06.785370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-01-28 20:01:06.788621"], ["updated_at", "2016-01-28 20:01:06.788621"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.791059"], ["updated_at", "2016-01-28 20:01:06.791059"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:01:06.796863"], ["updated_at", "2016-01-28 20:01:06.796863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-01-28 20:01:06.800408"], ["updated_at", "2016-01-28 20:01:06.800408"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.804566"], ["updated_at", "2016-01-28 20:01:06.804566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-01-28 20:01:06.808616"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-01-28 20:01:06.825238"], ["updated_at", "2016-01-28 20:01:06.825238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:01:06.831324"], ["updated_at", "2016-01-28 20:01:06.831324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.7ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-01-28 20:01:06.835418"], ["updated_at", "2016-01-28 20:01:06.835418"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.838877"], ["updated_at", "2016-01-28 20:01:06.838877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.841049"], ["updated_at", "2016-01-28 20:01:06.841049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:01:06.869221"], ["updated_at", "2016-01-28 20:01:06.869221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-01-28 20:01:06.874560"], ["updated_at", "2016-01-28 20:01:06.874560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-01-28 20:01:06.929043"], ["updated_at", "2016-01-28 20:01:06.929043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:01:06.944995"], ["updated_at", "2016-01-28 20:01:06.944995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-01-28 20:01:06.948264"], ["updated_at", "2016-01-28 20:01:06.948264"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.950241"], ["updated_at", "2016-01-28 20:01:06.950241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-01-28 20:01:06.970000"], ["updated_at", "2016-01-28 20:01:06.970000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-01-28 20:01:06.973345"], ["updated_at", "2016-01-28 20:01:06.973345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-01-28 20:01:06.977717"], ["updated_at", "2016-01-28 20:01:06.977717"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.979892"], ["updated_at", "2016-01-28 20:01:06.979892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-01-28 20:01:06.981545"], ["updated_at", "2016-01-28 20:01:06.981545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-01-28 20:01:06.984324"], ["updated_at", "2016-01-28 20:01:06.984324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0)  (4.4ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.3ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar)  (0.9ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)   (0.8ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)  (0.4ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (0.8ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160122204201')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150901153531') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_post_types" already exists: CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) rollback transaction  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618224344"]]  (1.0ms) commit transaction Migrating to CreatePulitzerContentElementTypes (20150618225402)  (0.4ms) begin transaction  (0.5ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618225402"]]  (0.8ms) commit transaction Migrating to CreatePulitzerPosts (20150619204615)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204615"]]  (0.8ms) commit transaction Migrating to CreatePulitzerContentElements (20150619204708)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "post_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204708"]]  (0.8ms) commit transaction Migrating to CreatePulitzerTags (20150619213436)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213436"]]  (0.8ms) commit transaction Migrating to CreatePulitzerPostTags (20150619213457)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213457"]]  (0.8ms) commit transaction Migrating to CreatePulitzerPostTypeContentElementTypes (20150619215914)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619215914"]]  (0.8ms) commit transaction Migrating to AddPluralAndTemplateToPulitzerPostTypes (20150629195832)  (0.1ms) begin transaction  (2.1ms) ALTER TABLE "pulitzer_post_types" ADD "plural" boolean  (0.3ms) ALTER TABLE "pulitzer_post_types" ADD "template" boolean SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150629195832"]]  (2.6ms) commit transaction Migrating to AddPulitzerContentElementTypes (20150702150819)  (0.1ms) begin transaction Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", "2016-05-16 20:19:45.043424"], ["updated_at", "2016-05-16 20:19:45.043424"]] Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 20:19:45.046436"], ["updated_at", "2016-05-16 20:19:45.046436"]] Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 20:19:45.048532"], ["updated_at", "2016-05-16 20:19:45.048532"]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150702150819"]]  (0.8ms) commit transaction Migrating to AddSlugToPulitzerPosts (20150724150230)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_posts" ADD "slug" varchar  (0.5ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150724150230"]]  (1.0ms) commit transaction Migrating to CreateSearchLocations (20150901153531)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150901153531"]]  (1.0ms) commit transaction Migrating to ChangeLabelTypeFromPulitzerPostTags (20150902212741)  (0.2ms) begin transaction  (1.1ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_post_tags"  (0.5ms) DROP TABLE "pulitzer_post_tags"  (0.1ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "apulitzer_post_tags"  (0.4ms) DROP TABLE "apulitzer_post_tags" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150902212741"]]  (1.0ms) commit transaction Migrating to AddTextEditorToPulitzerPostTypeContentElementTypes (20151026180630)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_post_type_content_element_types" ADD "text_editor" varchar SQL (0.1ms) UPDATE "pulitzer_post_type_content_element_types" SET "text_editor" = 'None' WHERE "pulitzer_post_type_content_element_types"."id" IN (SELECT "pulitzer_post_type_content_element_types"."id" FROM "pulitzer_post_type_content_element_types" ORDER BY "pulitzer_post_type_content_element_types"."id" ASC) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151026180630"]]  (0.7ms) commit transaction Migrating to CreatePulitzerVersions (20151029194354)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029194354"]]  (0.7ms) commit transaction Migrating to ChangePostElementsToVersions (20151029220558)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "pulitzer_content_elements"  (0.2ms) DROP TABLE "pulitzer_content_elements"  (0.1ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "apulitzer_content_elements"  (0.1ms) DROP TABLE "apulitzer_content_elements"  (0.1ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "pulitzer_post_tags"  (0.4ms) DROP TABLE "pulitzer_post_tags"  (0.1ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "apulitzer_post_tags"  (0.1ms) DROP TABLE "apulitzer_post_tags" Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" ORDER BY "pulitzer_posts"."id" ASC LIMIT 1000 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029220558"]]  (1.0ms) commit transaction Migrating to AddPostTypeContentElementAttributesToContentElements (20151113183344)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "pulitzer_content_elements" ADD "text_editor" varchar  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "height" integer DEFAULT 100  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "width" integer DEFAULT 100  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "sort_order" integer Scoped order and limit are ignored, it's forced to be batch order and batch size Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1000 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151113183344"]]  (0.8ms) commit transaction Migrating to ChangeTemplateToPulitzerPostTypes (20151116162508)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "template" boolean)   (0.1ms) SELECT * FROM "pulitzer_post_types"  (0.3ms) DROP TABLE "pulitzer_post_types"  (0.1ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean)  (0.1ms) SELECT * FROM "apulitzer_post_types"  (0.2ms) DROP TABLE "apulitzer_post_types"  (0.2ms) ALTER TABLE "pulitzer_post_types" ADD "kind" integer DEFAULT 0 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151116162508"]]  (0.8ms) commit transaction Migrating to AddKindToPulitzerContentElements (20151118031237)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_content_elements" ADD "kind" integer DEFAULT 0 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151118031237"]]  (0.8ms) commit transaction Migrating to AddErrorsToVersion (20160122204201)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_versions" ADD "cloning_errors" jsonb SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160122204201"]]  (0.7ms) commit transaction Migrating to CreatePartials (20160511192041)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160511192041"]]  (0.8ms) commit transaction Migrating to AddPartialToContentElement (20160512214545)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "pulitzer_content_elements" ADD "partial_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160512214545"]]  (0.8ms) commit transaction Migrating to CreateFreeFormSectionType (20160513153209)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160513153209"]]  (0.8ms) commit transaction Migrating to CreateFreeFormSection (20160513153214)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160513153214"]]  (1.7ms) commit transaction Migrating to FixPostTypeKinds (20160516150237)  (0.1ms) begin transaction Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" IN (1, 2) SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160516150237"]]  (1.4ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_pulitzer_posts_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_posts_on_slug' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) DELETE FROM "pulitzer_content_element_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (0.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';  (0.7ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.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.7ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:19:54.854347"], ["updated_at", "2016-05-16 20:19:54.854347"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 20:19:54.969550"], ["updated_at", "2016-05-16 20:19:54.969550"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:54.977478"], ["updated_at", "2016-05-16 20:19:54.977478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:54.979767"], ["updated_at", "2016-05-16 20:19:54.979767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 20:19:54.995764"], ["updated_at", "2016-05-16 20:19:54.995764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:19:54.998224"], ["updated_at", "2016-05-16 20:19:54.998224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 20:19:55.001130"], ["updated_at", "2016-05-16 20:19:55.001130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.003188"], ["updated_at", "2016-05-16 20:19:55.003188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 20:19:55.007635"], ["updated_at", "2016-05-16 20:19:55.007635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.019812"], ["updated_at", "2016-05-16 20:19:55.019812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:19:55.026914"], ["updated_at", "2016-05-16 20:19:55.026914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:19:54.998224"], ["updated_at", "2016-05-16 20:19:54.998224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.037803"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:19:55.003188"], ["updated_at", "2016-05-16 20:19:55.003188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.044113"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:19:55.019812"], ["updated_at", "2016-05-16 20:19:55.019812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.048723"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:19:55.055801"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:19:55.066013"], ["updated_at", "2016-05-16 20:19:55.066013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 20:19:55.069172"], ["updated_at", "2016-05-16 20:19:55.069172"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.071409"], ["updated_at", "2016-05-16 20:19:55.071409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.073646"], ["updated_at", "2016-05-16 20:19:55.073646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 20:19:55.076606"], ["updated_at", "2016-05-16 20:19:55.076606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.078225"], ["updated_at", "2016-05-16 20:19:55.078225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 20:19:55.080929"], ["updated_at", "2016-05-16 20:19:55.080929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.082370"], ["updated_at", "2016-05-16 20:19:55.082370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 20:19:55.085010"], ["updated_at", "2016-05-16 20:19:55.085010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.086455"], ["updated_at", "2016-05-16 20:19:55.086455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:19:55.088276"], ["updated_at", "2016-05-16 20:19:55.088276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:19:55.078225"], ["updated_at", "2016-05-16 20:19:55.078225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.094943"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:19:55.082370"], ["updated_at", "2016-05-16 20:19:55.082370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.100284"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:19:55.086455"], ["updated_at", "2016-05-16 20:19:55.086455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.107264"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:19:55.109821"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:19:55.121575"], ["updated_at", "2016-05-16 20:19:55.121575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 20:19:55.130130"], ["updated_at", "2016-05-16 20:19:55.130130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 20:19:55.132751"], ["updated_at", "2016-05-16 20:19:55.132751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 20:19:55.135386"], ["updated_at", "2016-05-16 20:19:55.135386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 20:19:55.137278"], ["updated_at", "2016-05-16 20:19:55.137278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 20:19:55.140408"], ["updated_at", "2016-05-16 20:19:55.140408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 20:19:55.141744"], ["updated_at", "2016-05-16 20:19:55.141744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 20:19:55.146746"], ["updated_at", "2016-05-16 20:19:55.146746"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.148412"], ["updated_at", "2016-05-16 20:19:55.148412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 20:19:55.156800"], ["updated_at", "2016-05-16 20:19:55.156800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 20:19:55.161056"], ["updated_at", "2016-05-16 20:19:55.161056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 20:19:55.165047"], ["updated_at", "2016-05-16 20:19:55.165047"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:19:55.179017"], ["updated_at", "2016-05-16 20:19:55.179017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 20:19:55.182054"], ["updated_at", "2016-05-16 20:19:55.182054"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.184712"], ["updated_at", "2016-05-16 20:19:55.184712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.186533"], ["updated_at", "2016-05-16 20:19:55.186533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 20:19:55.189370"], ["updated_at", "2016-05-16 20:19:55.189370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.190953"], ["updated_at", "2016-05-16 20:19:55.190953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 20:19:55.193513"], ["updated_at", "2016-05-16 20:19:55.193513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.195192"], ["updated_at", "2016-05-16 20:19:55.195192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 20:19:55.197943"], ["updated_at", "2016-05-16 20:19:55.197943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.199391"], ["updated_at", "2016-05-16 20:19:55.199391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 20:19:55.201683"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:19:55.203393"], ["updated_at", "2016-05-16 20:19:55.203393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:19:55.190953"], ["updated_at", "2016-05-16 20:19:55.190953"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.216804"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:19:55.195192"], ["updated_at", "2016-05-16 20:19:55.195192"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.222983"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:19:55.199391"], ["updated_at", "2016-05-16 20:19:55.199391"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.227617"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:19:55.229997"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3f5ee5d-0392-4ba3-85b6-2f1cb11a9585] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.01ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:19:55.244879"], ["updated_at", "2016-05-16 20:19:55.244879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 20:19:55.248237"], ["updated_at", "2016-05-16 20:19:55.248237"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.250779"], ["updated_at", "2016-05-16 20:19:55.250779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.252571"], ["updated_at", "2016-05-16 20:19:55.252571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 20:19:55.256000"], ["updated_at", "2016-05-16 20:19:55.256000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.257773"], ["updated_at", "2016-05-16 20:19:55.257773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 20:19:55.260716"], ["updated_at", "2016-05-16 20:19:55.260716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.262212"], ["updated_at", "2016-05-16 20:19:55.262212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 20:19:55.264848"], ["updated_at", "2016-05-16 20:19:55.264848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.266344"], ["updated_at", "2016-05-16 20:19:55.266344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 20:19:55.268559"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:19:55.270046"], ["updated_at", "2016-05-16 20:19:55.270046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b6da9721-db90-4d15-ace1-1e1e2a6ad75b) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:19:55.257773"], ["updated_at", "2016-05-16 20:19:55.257773"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.279554"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:19:55.262212"], ["updated_at", "2016-05-16 20:19:55.262212"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.285444"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:19:55.266344"], ["updated_at", "2016-05-16 20:19:55.266344"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.290510"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:19:55.293030"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b6da9721-db90-4d15-ace1-1e1e2a6ad75b] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.55ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 20:19:55.300518"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:19:55.302145"], ["updated_at", "2016-05-16 20:19:55.302145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 766a3b54-adc4-40d2-a4fe-4869e3173715) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:19:55.257773"], ["updated_at", "2016-05-16 20:19:55.257773"]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 20:19:55.310105"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:19:55.262212"], ["updated_at", "2016-05-16 20:19:55.262212"]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 20:19:55.314668"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:19:55.266344"], ["updated_at", "2016-05-16 20:19:55.266344"]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 20:19:55.319007"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:19:55.321287"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [766a3b54-adc4-40d2-a4fe-4869e3173715] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.73ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:19:55.333664"], ["updated_at", "2016-05-16 20:19:55.333664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 20:19:55.336371"], ["updated_at", "2016-05-16 20:19:55.336371"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.338414"], ["updated_at", "2016-05-16 20:19:55.338414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.340352"], ["updated_at", "2016-05-16 20:19:55.340352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 20:19:55.343270"], ["updated_at", "2016-05-16 20:19:55.343270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.344865"], ["updated_at", "2016-05-16 20:19:55.344865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 20:19:55.347638"], ["updated_at", "2016-05-16 20:19:55.347638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.349336"], ["updated_at", "2016-05-16 20:19:55.349336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 20:19:55.352123"], ["updated_at", "2016-05-16 20:19:55.352123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.353632"], ["updated_at", "2016-05-16 20:19:55.353632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 20:19:55.355833"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:19:55.357334"], ["updated_at", "2016-05-16 20:19:55.357334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6243ee6f-7ace-4a97-abbd-de684730b4d1) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:19:55.344865"], ["updated_at", "2016-05-16 20:19:55.344865"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.365627"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:19:55.349336"], ["updated_at", "2016-05-16 20:19:55.349336"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.372222"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:19:55.353632"], ["updated_at", "2016-05-16 20:19:55.353632"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:19:55.377243"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:19:55.379772"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6243ee6f-7ace-4a97-abbd-de684730b4d1] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.02ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 20:19:55.385599"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 20:19:55.399631"], ["updated_at", "2016-05-16 20:19:55.399631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 20:19:55.410913"], ["updated_at", "2016-05-16 20:19:55.410913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 20:19:55.416026"], ["updated_at", "2016-05-16 20:19:55.416026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 20:19:55.420860"], ["updated_at", "2016-05-16 20:19:55.420860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 20:19:55.426486"], ["updated_at", "2016-05-16 20:19:55.426486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:19:55.428422"], ["updated_at", "2016-05-16 20:19:55.428422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 20:19:55.436025"], ["updated_at", "2016-05-16 20:19:55.436025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:19:55.438029"], ["updated_at", "2016-05-16 20:19:55.438029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 20:19:55.443948"], ["updated_at", "2016-05-16 20:19:55.443948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 20:19:55.448322"], ["updated_at", "2016-05-16 20:19:55.448322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 20:19:55.454324"], ["updated_at", "2016-05-16 20:19:55.454324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:19:55.629036"], ["updated_at", "2016-05-16 20:19:55.629036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:19:55.645066"], ["updated_at", "2016-05-16 20:19:55.645066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 20:19:55.647776"], ["updated_at", "2016-05-16 20:19:55.647776"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.650822"], ["updated_at", "2016-05-16 20:19:55.650822"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:19:55.660537"], ["updated_at", "2016-05-16 20:19:55.660537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 20:19:55.663267"], ["updated_at", "2016-05-16 20:19:55.663267"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.665188"], ["updated_at", "2016-05-16 20:19:55.665188"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 20:19:55.668818"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 20:19:55.681333"], ["updated_at", "2016-05-16 20:19:55.681333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:19:55.695967"], ["updated_at", "2016-05-16 20:19:55.695967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 20:19:55.698694"], ["updated_at", "2016-05-16 20:19:55.698694"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.700435"], ["updated_at", "2016-05-16 20:19:55.700435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.702005"], ["updated_at", "2016-05-16 20:19:55.702005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:19:55.725039"], ["updated_at", "2016-05-16 20:19:55.725039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 20:19:55.728193"], ["updated_at", "2016-05-16 20:19:55.728193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 20:19:55.806242"], ["updated_at", "2016-05-16 20:19:55.806242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:19:55.820588"], ["updated_at", "2016-05-16 20:19:55.820588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 20:19:55.823782"], ["updated_at", "2016-05-16 20:19:55.823782"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.826009"], ["updated_at", "2016-05-16 20:19:55.826009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 20:19:55.847585"], ["updated_at", "2016-05-16 20:19:55.847585"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:19:55.850698"], ["updated_at", "2016-05-16 20:19:55.850698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 20:19:55.853652"], ["updated_at", "2016-05-16 20:19:55.853652"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.855686"], ["updated_at", "2016-05-16 20:19:55.855686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:19:55.857390"], ["updated_at", "2016-05-16 20:19:55.857390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 20:19:55.860020"], ["updated_at", "2016-05-16 20:19:55.860020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.8ms) 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';  (0.7ms) 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.6ms) 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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:20:42.812715"], ["updated_at", "2016-05-16 20:20:42.812715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 20:20:42.948450"], ["updated_at", "2016-05-16 20:20:42.948450"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:42.956959"], ["updated_at", "2016-05-16 20:20:42.956959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:42.960954"], ["updated_at", "2016-05-16 20:20:42.960954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 20:20:42.975282"], ["updated_at", "2016-05-16 20:20:42.975282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:20:42.977885"], ["updated_at", "2016-05-16 20:20:42.977885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 20:20:42.981167"], ["updated_at", "2016-05-16 20:20:42.981167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:20:42.982868"], ["updated_at", "2016-05-16 20:20:42.982868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 20:20:42.986770"], ["updated_at", "2016-05-16 20:20:42.986770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:20:42.988639"], ["updated_at", "2016-05-16 20:20:42.988639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:20:43.003973"], ["updated_at", "2016-05-16 20:20:43.003973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:20:42.977885"], ["updated_at", "2016-05-16 20:20:42.977885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.017753"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:20:42.982868"], ["updated_at", "2016-05-16 20:20:42.982868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.024768"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:20:42.988639"], ["updated_at", "2016-05-16 20:20:42.988639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.029224"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:20:43.036088"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:20:43.046443"], ["updated_at", "2016-05-16 20:20:43.046443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 20:20:43.049119"], ["updated_at", "2016-05-16 20:20:43.049119"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.050985"], ["updated_at", "2016-05-16 20:20:43.050985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.053109"], ["updated_at", "2016-05-16 20:20:43.053109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 20:20:43.055888"], ["updated_at", "2016-05-16 20:20:43.055888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:20:43.057825"], ["updated_at", "2016-05-16 20:20:43.057825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 20:20:43.060532"], ["updated_at", "2016-05-16 20:20:43.060532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:20:43.062069"], ["updated_at", "2016-05-16 20:20:43.062069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 20:20:43.064620"], ["updated_at", "2016-05-16 20:20:43.064620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:20:43.066267"], ["updated_at", "2016-05-16 20:20:43.066267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:20:43.068203"], ["updated_at", "2016-05-16 20:20:43.068203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:20:43.057825"], ["updated_at", "2016-05-16 20:20:43.057825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.074493"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:20:43.062069"], ["updated_at", "2016-05-16 20:20:43.062069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.079310"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:20:43.066267"], ["updated_at", "2016-05-16 20:20:43.066267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.085110"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:20:43.088674"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:20:43.099548"], ["updated_at", "2016-05-16 20:20:43.099548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 20:20:43.106747"], ["updated_at", "2016-05-16 20:20:43.106747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 20:20:43.109924"], ["updated_at", "2016-05-16 20:20:43.109924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 20:20:43.112903"], ["updated_at", "2016-05-16 20:20:43.112903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 20:20:43.114349"], ["updated_at", "2016-05-16 20:20:43.114349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 20:20:43.116663"], ["updated_at", "2016-05-16 20:20:43.116663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 20:20:43.118360"], ["updated_at", "2016-05-16 20:20:43.118360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 20:20:43.124157"], ["updated_at", "2016-05-16 20:20:43.124157"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.125915"], ["updated_at", "2016-05-16 20:20:43.125915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 20:20:43.134399"], ["updated_at", "2016-05-16 20:20:43.134399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 20:20:43.140526"], ["updated_at", "2016-05-16 20:20:43.140526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 20:20:43.144968"], ["updated_at", "2016-05-16 20:20:43.144968"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:20:43.157460"], ["updated_at", "2016-05-16 20:20:43.157460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 20:20:43.160129"], ["updated_at", "2016-05-16 20:20:43.160129"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.162001"], ["updated_at", "2016-05-16 20:20:43.162001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.163825"], ["updated_at", "2016-05-16 20:20:43.163825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 20:20:43.166652"], ["updated_at", "2016-05-16 20:20:43.166652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:20:43.168866"], ["updated_at", "2016-05-16 20:20:43.168866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 20:20:43.172316"], ["updated_at", "2016-05-16 20:20:43.172316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:20:43.174138"], ["updated_at", "2016-05-16 20:20:43.174138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 20:20:43.177240"], ["updated_at", "2016-05-16 20:20:43.177240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:20:43.178872"], ["updated_at", "2016-05-16 20:20:43.178872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 20:20:43.181215"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:20:43.182639"], ["updated_at", "2016-05-16 20:20:43.182639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 7ce3b4c5-7cf4-4110-87c9-661b918e0067) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:20:43.168866"], ["updated_at", "2016-05-16 20:20:43.168866"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.195077"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:20:43.174138"], ["updated_at", "2016-05-16 20:20:43.174138"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.200988"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:20:43.178872"], ["updated_at", "2016-05-16 20:20:43.178872"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.206503"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:20:43.208876"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7ce3b4c5-7cf4-4110-87c9-661b918e0067] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.33ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:20:43.221838"], ["updated_at", "2016-05-16 20:20:43.221838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 20:20:43.224671"], ["updated_at", "2016-05-16 20:20:43.224671"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.226607"], ["updated_at", "2016-05-16 20:20:43.226607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.228382"], ["updated_at", "2016-05-16 20:20:43.228382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 20:20:43.231399"], ["updated_at", "2016-05-16 20:20:43.231399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:20:43.233106"], ["updated_at", "2016-05-16 20:20:43.233106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 20:20:43.236237"], ["updated_at", "2016-05-16 20:20:43.236237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:20:43.238049"], ["updated_at", "2016-05-16 20:20:43.238049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 20:20:43.240711"], ["updated_at", "2016-05-16 20:20:43.240711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:20:43.242155"], ["updated_at", "2016-05-16 20:20:43.242155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 20:20:43.244301"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:20:43.245749"], ["updated_at", "2016-05-16 20:20:43.245749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 3e9df900-a8f5-48d1-ad45-fcc943eb66a9) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:20:43.233106"], ["updated_at", "2016-05-16 20:20:43.233106"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.254309"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:20:43.238049"], ["updated_at", "2016-05-16 20:20:43.238049"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.260540"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:20:43.242155"], ["updated_at", "2016-05-16 20:20:43.242155"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.265736"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:20:43.268503"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9df900-a8f5-48d1-ad45-fcc943eb66a9] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.6ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 20:20:43.276590"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:20:43.278263"], ["updated_at", "2016-05-16 20:20:43.278263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ba31f7d8-e7d0-4f63-8f5c-063e79f820df) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:20:43.233106"], ["updated_at", "2016-05-16 20:20:43.233106"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 20:20:43.288295"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:20:43.238049"], ["updated_at", "2016-05-16 20:20:43.238049"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 20:20:43.293772"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:20:43.242155"], ["updated_at", "2016-05-16 20:20:43.242155"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 20:20:43.298773"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:20:43.301404"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba31f7d8-e7d0-4f63-8f5c-063e79f820df] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.53ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:20:43.314680"], ["updated_at", "2016-05-16 20:20:43.314680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 20:20:43.317343"], ["updated_at", "2016-05-16 20:20:43.317343"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.319379"], ["updated_at", "2016-05-16 20:20:43.319379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.321362"], ["updated_at", "2016-05-16 20:20:43.321362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 20:20:43.324980"], ["updated_at", "2016-05-16 20:20:43.324980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:20:43.327479"], ["updated_at", "2016-05-16 20:20:43.327479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 20:20:43.330857"], ["updated_at", "2016-05-16 20:20:43.330857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:20:43.332505"], ["updated_at", "2016-05-16 20:20:43.332505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 20:20:43.335805"], ["updated_at", "2016-05-16 20:20:43.335805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:20:43.338131"], ["updated_at", "2016-05-16 20:20:43.338131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 20:20:43.340735"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:20:43.342396"], ["updated_at", "2016-05-16 20:20:43.342396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6dd0a4a7-08b9-4223-9368-ac56d07ea85a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:20:43.327479"], ["updated_at", "2016-05-16 20:20:43.327479"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.353364"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:20:43.332505"], ["updated_at", "2016-05-16 20:20:43.332505"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.358798"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:20:43.338131"], ["updated_at", "2016-05-16 20:20:43.338131"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:20:43.365443"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:20:43.369381"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dd0a4a7-08b9-4223-9368-ac56d07ea85a] Performed Pulitzer::CloneVersionJob from Inline(default) in 28.15ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 20:20:43.375468"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 20:20:43.387639"], ["updated_at", "2016-05-16 20:20:43.387639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 20:20:43.398971"], ["updated_at", "2016-05-16 20:20:43.398971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 20:20:43.404116"], ["updated_at", "2016-05-16 20:20:43.404116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 20:20:43.408735"], ["updated_at", "2016-05-16 20:20:43.408735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 20:20:43.414448"], ["updated_at", "2016-05-16 20:20:43.414448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:20:43.416324"], ["updated_at", "2016-05-16 20:20:43.416324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 20:20:43.423118"], ["updated_at", "2016-05-16 20:20:43.423118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:20:43.426012"], ["updated_at", "2016-05-16 20:20:43.426012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 20:20:43.432231"], ["updated_at", "2016-05-16 20:20:43.432231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 20:20:43.438995"], ["updated_at", "2016-05-16 20:20:43.438995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 20:20:43.444951"], ["updated_at", "2016-05-16 20:20:43.444951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:20:43.586278"], ["updated_at", "2016-05-16 20:20:43.586278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:20:43.599961"], ["updated_at", "2016-05-16 20:20:43.599961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 20:20:43.603824"], ["updated_at", "2016-05-16 20:20:43.603824"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.606767"], ["updated_at", "2016-05-16 20:20:43.606767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:20:43.610884"], ["updated_at", "2016-05-16 20:20:43.610884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 20:20:43.615262"], ["updated_at", "2016-05-16 20:20:43.615262"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.618067"], ["updated_at", "2016-05-16 20:20:43.618067"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 20:20:43.621963"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 20:20:43.637059"], ["updated_at", "2016-05-16 20:20:43.637059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:20:43.656696"], ["updated_at", "2016-05-16 20:20:43.656696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 20:20:43.659785"], ["updated_at", "2016-05-16 20:20:43.659785"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.661441"], ["updated_at", "2016-05-16 20:20:43.661441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.662869"], ["updated_at", "2016-05-16 20:20:43.662869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:20:43.683429"], ["updated_at", "2016-05-16 20:20:43.683429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 20:20:43.687895"], ["updated_at", "2016-05-16 20:20:43.687895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 20:20:43.728563"], ["updated_at", "2016-05-16 20:20:43.728563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:20:43.752111"], ["updated_at", "2016-05-16 20:20:43.752111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 20:20:43.755941"], ["updated_at", "2016-05-16 20:20:43.755941"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.758499"], ["updated_at", "2016-05-16 20:20:43.758499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 20:20:43.787608"], ["updated_at", "2016-05-16 20:20:43.787608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:20:43.790754"], ["updated_at", "2016-05-16 20:20:43.790754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 20:20:43.794629"], ["updated_at", "2016-05-16 20:20:43.794629"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.796322"], ["updated_at", "2016-05-16 20:20:43.796322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:20:43.798072"], ["updated_at", "2016-05-16 20:20:43.798072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 20:20:43.801526"], ["updated_at", "2016-05-16 20:20:43.801526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (2.1ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.3ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)  (1.1ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.9ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  (0.8ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer)   (0.9ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar)   (1.0ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)  (0.9ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (0.9ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160516150237')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150901153531')  (1.7ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)  (0.8ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.8ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  (0.8ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer)   (0.7ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar)   (0.8ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)  (0.8ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (1.0ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160516150237')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150901153531') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.0ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)  (1.0ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.8ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  (0.9ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer)   (0.8ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar)   (1.0ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)  (1.0ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)   (0.2ms) select sqlite_version(*)  (1.1ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (1.0ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160516150237')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150901153531') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_post_types" already exists: CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) rollback transaction  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618224344"]]  (0.7ms) commit transaction Migrating to CreatePulitzerContentElementTypes (20150618225402)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618225402"]]  (0.7ms) commit transaction Migrating to CreatePulitzerPosts (20150619204615)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204615"]]  (0.7ms) commit transaction Migrating to CreatePulitzerContentElements (20150619204708)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "post_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204708"]]  (0.7ms) commit transaction Migrating to CreatePulitzerTags (20150619213436)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213436"]]  (0.8ms) commit transaction Migrating to CreatePulitzerPostTags (20150619213457)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213457"]]  (0.7ms) commit transaction Migrating to CreatePulitzerPostTypeContentElementTypes (20150619215914)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619215914"]]  (0.7ms) commit transaction Migrating to AddPluralAndTemplateToPulitzerPostTypes (20150629195832)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "pulitzer_post_types" ADD "plural" boolean  (0.2ms) ALTER TABLE "pulitzer_post_types" ADD "template" boolean SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150629195832"]]  (2.0ms) commit transaction Migrating to AddPulitzerContentElementTypes (20150702150819)  (0.1ms) begin transaction Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", "2016-05-16 20:54:58.795880"], ["updated_at", "2016-05-16 20:54:58.795880"]] Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 20:54:58.798017"], ["updated_at", "2016-05-16 20:54:58.798017"]] Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 20:54:58.799272"], ["updated_at", "2016-05-16 20:54:58.799272"]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150702150819"]]  (0.9ms) commit transaction Migrating to AddSlugToPulitzerPosts (20150724150230)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_posts" ADD "slug" varchar  (0.4ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150724150230"]]  (1.1ms) commit transaction Migrating to CreateSearchLocations (20150901153531)  (0.1ms) begin transaction  (0.9ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150901153531"]]  (0.8ms) commit transaction Migrating to ChangeLabelTypeFromPulitzerPostTags (20150902212741)  (0.0ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_post_tags"  (0.3ms) DROP TABLE "pulitzer_post_tags"  (0.2ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "apulitzer_post_tags"  (0.4ms) DROP TABLE "apulitzer_post_tags" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150902212741"]]  (1.1ms) commit transaction Migrating to AddTextEditorToPulitzerPostTypeContentElementTypes (20151026180630)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "pulitzer_post_type_content_element_types" ADD "text_editor" varchar SQL (0.1ms) UPDATE "pulitzer_post_type_content_element_types" SET "text_editor" = 'None' WHERE "pulitzer_post_type_content_element_types"."id" IN (SELECT "pulitzer_post_type_content_element_types"."id" FROM "pulitzer_post_type_content_element_types" ORDER BY "pulitzer_post_type_content_element_types"."id" ASC) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151026180630"]]  (0.8ms) commit transaction Migrating to CreatePulitzerVersions (20151029194354)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029194354"]]  (3.2ms) commit transaction Migrating to ChangePostElementsToVersions (20151029220558)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "apulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_content_elements"  (0.4ms) DROP TABLE "pulitzer_content_elements"  (0.2ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "apulitzer_content_elements"  (0.1ms) DROP TABLE "apulitzer_content_elements"  (0.1ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_post_tags"  (0.4ms) DROP TABLE "pulitzer_post_tags"  (0.1ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "apulitzer_post_tags"  (0.2ms) DROP TABLE "apulitzer_post_tags" Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" ORDER BY "pulitzer_posts"."id" ASC LIMIT 1000 SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029220558"]]  (1.3ms) commit transaction Migrating to AddPostTypeContentElementAttributesToContentElements (20151113183344)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "pulitzer_content_elements" ADD "text_editor" varchar  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "height" integer DEFAULT 100  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "width" integer DEFAULT 100  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "sort_order" integer Scoped order and limit are ignored, it's forced to be batch order and batch size Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1000 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151113183344"]]  (0.7ms) commit transaction Migrating to ChangeTemplateToPulitzerPostTypes (20151116162508)  (0.0ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "template" boolean)   (0.1ms) SELECT * FROM "pulitzer_post_types"  (0.4ms) DROP TABLE "pulitzer_post_types"  (0.2ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean)  (0.0ms) SELECT * FROM "apulitzer_post_types"  (0.1ms) DROP TABLE "apulitzer_post_types"  (0.6ms) ALTER TABLE "pulitzer_post_types" ADD "kind" integer DEFAULT 0 SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151116162508"]]  (1.2ms) commit transaction Migrating to AddKindToPulitzerContentElements (20151118031237)  (0.2ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_content_elements" ADD "kind" integer DEFAULT 0 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151118031237"]]  (0.8ms) commit transaction Migrating to AddErrorsToVersion (20160122204201)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_versions" ADD "cloning_errors" jsonb SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160122204201"]]  (0.7ms) commit transaction Migrating to CreatePartials (20160511192041)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160511192041"]]  (0.7ms) commit transaction Migrating to AddPartialToContentElement (20160512214545)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_content_elements" ADD "partial_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160512214545"]]  (0.8ms) commit transaction Migrating to CreateFreeFormSectionType (20160513153209)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160513153209"]]  (0.8ms) commit transaction Migrating to CreateFreeFormSection (20160513153214)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160513153214"]]  (2.9ms) commit transaction Migrating to FixPostTypeKinds (20160516150237)  (0.2ms) begin transaction Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" IN (1, 2) SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160516150237"]]  (1.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_pulitzer_posts_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_posts_on_slug' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) DELETE FROM "pulitzer_content_element_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) 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.7ms) 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';  (0.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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.8ms) 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.7ms) 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';  (0.6ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:55:05.286494"], ["updated_at", "2016-05-16 20:55:05.286494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 20:55:05.403066"], ["updated_at", "2016-05-16 20:55:05.403066"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:05.406067"], ["updated_at", "2016-05-16 20:55:05.406067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:05.408473"], ["updated_at", "2016-05-16 20:55:05.408473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 20:55:05.430502"], ["updated_at", "2016-05-16 20:55:05.430502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.432807"], ["updated_at", "2016-05-16 20:55:05.432807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 20:55:05.435590"], ["updated_at", "2016-05-16 20:55:05.435590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.437066"], ["updated_at", "2016-05-16 20:55:05.437066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 20:55:05.440094"], ["updated_at", "2016-05-16 20:55:05.440094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.441552"], ["updated_at", "2016-05-16 20:55:05.441552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:55:05.448070"], ["updated_at", "2016-05-16 20:55:05.448070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:55:05.432807"], ["updated_at", "2016-05-16 20:55:05.432807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.458415"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:55:05.437066"], ["updated_at", "2016-05-16 20:55:05.437066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.463841"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:55:05.441552"], ["updated_at", "2016-05-16 20:55:05.441552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.468879"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:55:05.476235"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:55:05.485349"], ["updated_at", "2016-05-16 20:55:05.485349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 20:55:05.488198"], ["updated_at", "2016-05-16 20:55:05.488198"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:05.490231"], ["updated_at", "2016-05-16 20:55:05.490231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:05.492157"], ["updated_at", "2016-05-16 20:55:05.492157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 20:55:05.495111"], ["updated_at", "2016-05-16 20:55:05.495111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.496790"], ["updated_at", "2016-05-16 20:55:05.496790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 20:55:05.499636"], ["updated_at", "2016-05-16 20:55:05.499636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.501142"], ["updated_at", "2016-05-16 20:55:05.501142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 20:55:05.503912"], ["updated_at", "2016-05-16 20:55:05.503912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.505414"], ["updated_at", "2016-05-16 20:55:05.505414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:55:05.507311"], ["updated_at", "2016-05-16 20:55:05.507311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:55:05.496790"], ["updated_at", "2016-05-16 20:55:05.496790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.514671"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:55:05.501142"], ["updated_at", "2016-05-16 20:55:05.501142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.519412"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:55:05.505414"], ["updated_at", "2016-05-16 20:55:05.505414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.524842"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:55:05.527198"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:55:05.541344"], ["updated_at", "2016-05-16 20:55:05.541344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 20:55:05.552069"], ["updated_at", "2016-05-16 20:55:05.552069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 20:55:05.555550"], ["updated_at", "2016-05-16 20:55:05.555550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 20:55:05.559175"], ["updated_at", "2016-05-16 20:55:05.559175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 20:55:05.560592"], ["updated_at", "2016-05-16 20:55:05.560592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 20:55:05.563039"], ["updated_at", "2016-05-16 20:55:05.563039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 20:55:05.564772"], ["updated_at", "2016-05-16 20:55:05.564772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 20:55:05.571091"], ["updated_at", "2016-05-16 20:55:05.571091"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:05.573449"], ["updated_at", "2016-05-16 20:55:05.573449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 20:55:05.583268"], ["updated_at", "2016-05-16 20:55:05.583268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 20:55:05.589663"], ["updated_at", "2016-05-16 20:55:05.589663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 20:55:05.594137"], ["updated_at", "2016-05-16 20:55:05.594137"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (5.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:55:05.609553"], ["updated_at", "2016-05-16 20:55:05.609553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 20:55:05.612486"], ["updated_at", "2016-05-16 20:55:05.612486"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:05.614405"], ["updated_at", "2016-05-16 20:55:05.614405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:05.616462"], ["updated_at", "2016-05-16 20:55:05.616462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 20:55:05.620173"], ["updated_at", "2016-05-16 20:55:05.620173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.622587"], ["updated_at", "2016-05-16 20:55:05.622587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 20:55:05.626866"], ["updated_at", "2016-05-16 20:55:05.626866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.629024"], ["updated_at", "2016-05-16 20:55:05.629024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 20:55:05.632702"], ["updated_at", "2016-05-16 20:55:05.632702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.634253"], ["updated_at", "2016-05-16 20:55:05.634253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 20:55:05.636684"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:55:05.638206"], ["updated_at", "2016-05-16 20:55:05.638206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 7879d601-e6ad-49be-8d10-25a6bf0e46dd) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:55:05.622587"], ["updated_at", "2016-05-16 20:55:05.622587"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.653574"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:55:05.629024"], ["updated_at", "2016-05-16 20:55:05.629024"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.660075"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:55:05.634253"], ["updated_at", "2016-05-16 20:55:05.634253"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.667803"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:55:05.670176"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7879d601-e6ad-49be-8d10-25a6bf0e46dd] Performed Pulitzer::CloneVersionJob from Inline(default) in 29.98ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:55:05.684221"], ["updated_at", "2016-05-16 20:55:05.684221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.7ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 20:55:05.687907"], ["updated_at", "2016-05-16 20:55:05.687907"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:05.691076"], ["updated_at", "2016-05-16 20:55:05.691076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:05.692874"], ["updated_at", "2016-05-16 20:55:05.692874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 20:55:05.695888"], ["updated_at", "2016-05-16 20:55:05.695888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.697910"], ["updated_at", "2016-05-16 20:55:05.697910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 20:55:05.702786"], ["updated_at", "2016-05-16 20:55:05.702786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.705194"], ["updated_at", "2016-05-16 20:55:05.705194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 20:55:05.709092"], ["updated_at", "2016-05-16 20:55:05.709092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.711245"], ["updated_at", "2016-05-16 20:55:05.711245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 20:55:05.714621"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:55:05.716930"], ["updated_at", "2016-05-16 20:55:05.716930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: aebd8366-c08b-489a-a41c-6deb537d4caf) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:55:05.697910"], ["updated_at", "2016-05-16 20:55:05.697910"]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.729155"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:55:05.705194"], ["updated_at", "2016-05-16 20:55:05.705194"]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.735742"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:55:05.711245"], ["updated_at", "2016-05-16 20:55:05.711245"]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.742237"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:55:05.745002"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aebd8366-c08b-489a-a41c-6deb537d4caf] Performed Pulitzer::CloneVersionJob from Inline(default) in 29.45ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 20:55:05.753567"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:55:05.755757"], ["updated_at", "2016-05-16 20:55:05.755757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 028e88ed-09ac-468e-8089-2a24fb4e04d7) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:55:05.697910"], ["updated_at", "2016-05-16 20:55:05.697910"]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 20:55:05.767686"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:55:05.705194"], ["updated_at", "2016-05-16 20:55:05.705194"]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 20:55:05.774448"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:55:05.711245"], ["updated_at", "2016-05-16 20:55:05.711245"]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 20:55:05.780913"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:55:05.784547"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [028e88ed-09ac-468e-8089-2a24fb4e04d7] Performed Pulitzer::CloneVersionJob from Inline(default) in 30.25ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (3.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:55:05.801552"], ["updated_at", "2016-05-16 20:55:05.801552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 20:55:05.805519"], ["updated_at", "2016-05-16 20:55:05.805519"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:05.808298"], ["updated_at", "2016-05-16 20:55:05.808298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:05.810440"], ["updated_at", "2016-05-16 20:55:05.810440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 20:55:05.814977"], ["updated_at", "2016-05-16 20:55:05.814977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.817050"], ["updated_at", "2016-05-16 20:55:05.817050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 20:55:05.820806"], ["updated_at", "2016-05-16 20:55:05.820806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.822447"], ["updated_at", "2016-05-16 20:55:05.822447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 20:55:05.825302"], ["updated_at", "2016-05-16 20:55:05.825302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:55:05.827419"], ["updated_at", "2016-05-16 20:55:05.827419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 20:55:05.830823"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:55:05.832866"], ["updated_at", "2016-05-16 20:55:05.832866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 4b84a9bc-231b-4298-a170-a170afb1b2de) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:55:05.817050"], ["updated_at", "2016-05-16 20:55:05.817050"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.844508"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:55:05.822447"], ["updated_at", "2016-05-16 20:55:05.822447"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.850137"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:55:05.827419"], ["updated_at", "2016-05-16 20:55:05.827419"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:55:05.854621"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:55:05.857367"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4b84a9bc-231b-4298-a170-a170afb1b2de] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.08ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 20:55:05.865971"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 20:55:05.884980"], ["updated_at", "2016-05-16 20:55:05.884980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 20:55:05.899918"], ["updated_at", "2016-05-16 20:55:05.899918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 20:55:05.906550"], ["updated_at", "2016-05-16 20:55:05.906550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 20:55:05.911556"], ["updated_at", "2016-05-16 20:55:05.911556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 20:55:05.918552"], ["updated_at", "2016-05-16 20:55:05.918552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:55:05.921120"], ["updated_at", "2016-05-16 20:55:05.921120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 20:55:05.928694"], ["updated_at", "2016-05-16 20:55:05.928694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:55:05.931282"], ["updated_at", "2016-05-16 20:55:05.931282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 20:55:05.938497"], ["updated_at", "2016-05-16 20:55:05.938497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.7ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 20:55:05.943622"], ["updated_at", "2016-05-16 20:55:05.943622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 20:55:05.950709"], ["updated_at", "2016-05-16 20:55:05.950709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.9ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:55:06.140362"], ["updated_at", "2016-05-16 20:55:06.140362"]]  (0.1ms) RELEASE 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 1 [["slug", "winterfell-news-7"]]  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:55:06.160535"], ["updated_at", "2016-05-16 20:55:06.160535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 20:55:06.163215"], ["updated_at", "2016-05-16 20:55:06.163215"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:06.165496"], ["updated_at", "2016-05-16 20:55:06.165496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:55:06.170564"], ["updated_at", "2016-05-16 20:55:06.170564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 20:55:06.173827"], ["updated_at", "2016-05-16 20:55:06.173827"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:06.176048"], ["updated_at", "2016-05-16 20:55:06.176048"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 20:55:06.179289"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 20:55:06.192441"], ["updated_at", "2016-05-16 20:55:06.192441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:55:06.197611"], ["updated_at", "2016-05-16 20:55:06.197611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 20:55:06.200903"], ["updated_at", "2016-05-16 20:55:06.200903"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:06.202537"], ["updated_at", "2016-05-16 20:55:06.202537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:06.204458"], ["updated_at", "2016-05-16 20:55:06.204458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:55:06.225800"], ["updated_at", "2016-05-16 20:55:06.225800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 20:55:06.230971"], ["updated_at", "2016-05-16 20:55:06.230971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 20:55:06.290985"], ["updated_at", "2016-05-16 20:55:06.290985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:55:06.305736"], ["updated_at", "2016-05-16 20:55:06.305736"]]  (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 1 [["slug", "winterfell-news-11"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 20:55:06.309718"], ["updated_at", "2016-05-16 20:55:06.309718"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:06.313739"], ["updated_at", "2016-05-16 20:55:06.313739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 20:55:06.334468"], ["updated_at", "2016-05-16 20:55:06.334468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:55:06.337626"], ["updated_at", "2016-05-16 20:55:06.337626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 20:55:06.340889"], ["updated_at", "2016-05-16 20:55:06.340889"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:06.342865"], ["updated_at", "2016-05-16 20:55:06.342865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:55:06.344834"], ["updated_at", "2016-05-16 20:55:06.344834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 20:55:06.348060"], ["updated_at", "2016-05-16 20:55:06.348060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.7ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.7ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.7ms) 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';  (0.7ms) 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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 20:58:15.278159"], ["updated_at", "2016-05-16 20:58:15.278159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 20:58:15.286808"], ["updated_at", "2016-05-16 20:58:15.286808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 20:58:15.307610"], ["updated_at", "2016-05-16 20:58:15.307610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 20:58:15.313873"], ["updated_at", "2016-05-16 20:58:15.313873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:58:15.330225"], ["updated_at", "2016-05-16 20:58:15.330225"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 20:58:15.452294"], ["updated_at", "2016-05-16 20:58:15.452294"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:15.464529"], ["updated_at", "2016-05-16 20:58:15.464529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:15.467256"], ["updated_at", "2016-05-16 20:58:15.467256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 20:58:15.479871"], ["updated_at", "2016-05-16 20:58:15.479871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.482686"], ["updated_at", "2016-05-16 20:58:15.482686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 20:58:15.485932"], ["updated_at", "2016-05-16 20:58:15.485932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.487631"], ["updated_at", "2016-05-16 20:58:15.487631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 20:58:15.490750"], ["updated_at", "2016-05-16 20:58:15.490750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.492535"], ["updated_at", "2016-05-16 20:58:15.492535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:58:15.497175"], ["updated_at", "2016-05-16 20:58:15.497175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:58:15.482686"], ["updated_at", "2016-05-16 20:58:15.482686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.506342"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:58:15.487631"], ["updated_at", "2016-05-16 20:58:15.487631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.511775"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:58:15.492535"], ["updated_at", "2016-05-16 20:58:15.492535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.516295"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:58:15.523373"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:58:15.533765"], ["updated_at", "2016-05-16 20:58:15.533765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 20:58:15.537157"], ["updated_at", "2016-05-16 20:58:15.537157"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:15.539919"], ["updated_at", "2016-05-16 20:58:15.539919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:15.541642"], ["updated_at", "2016-05-16 20:58:15.541642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 20:58:15.544315"], ["updated_at", "2016-05-16 20:58:15.544315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.545858"], ["updated_at", "2016-05-16 20:58:15.545858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 20:58:15.548450"], ["updated_at", "2016-05-16 20:58:15.548450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.549942"], ["updated_at", "2016-05-16 20:58:15.549942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 20:58:15.552869"], ["updated_at", "2016-05-16 20:58:15.552869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.554760"], ["updated_at", "2016-05-16 20:58:15.554760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:58:15.557159"], ["updated_at", "2016-05-16 20:58:15.557159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:58:15.545858"], ["updated_at", "2016-05-16 20:58:15.545858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.564410"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:58:15.549942"], ["updated_at", "2016-05-16 20:58:15.549942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.569694"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:58:15.554760"], ["updated_at", "2016-05-16 20:58:15.554760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.575626"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:58:15.578007"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:58:15.592873"], ["updated_at", "2016-05-16 20:58:15.592873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 20:58:15.600284"], ["updated_at", "2016-05-16 20:58:15.600284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 20:58:15.603000"], ["updated_at", "2016-05-16 20:58:15.603000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 20:58:15.605573"], ["updated_at", "2016-05-16 20:58:15.605573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 20:58:15.606861"], ["updated_at", "2016-05-16 20:58:15.606861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 20:58:15.608984"], ["updated_at", "2016-05-16 20:58:15.608984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 20:58:15.610228"], ["updated_at", "2016-05-16 20:58:15.610228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 20:58:15.615012"], ["updated_at", "2016-05-16 20:58:15.615012"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:15.616896"], ["updated_at", "2016-05-16 20:58:15.616896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 20:58:15.624853"], ["updated_at", "2016-05-16 20:58:15.624853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 20:58:15.630104"], ["updated_at", "2016-05-16 20:58:15.630104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 20:58:15.635151"], ["updated_at", "2016-05-16 20:58:15.635151"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:58:15.645987"], ["updated_at", "2016-05-16 20:58:15.645987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 20:58:15.649218"], ["updated_at", "2016-05-16 20:58:15.649218"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:15.651840"], ["updated_at", "2016-05-16 20:58:15.651840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:15.653823"], ["updated_at", "2016-05-16 20:58:15.653823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 20:58:15.656536"], ["updated_at", "2016-05-16 20:58:15.656536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.658060"], ["updated_at", "2016-05-16 20:58:15.658060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 20:58:15.660652"], ["updated_at", "2016-05-16 20:58:15.660652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.662186"], ["updated_at", "2016-05-16 20:58:15.662186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 20:58:15.664903"], ["updated_at", "2016-05-16 20:58:15.664903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.666312"], ["updated_at", "2016-05-16 20:58:15.666312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 20:58:15.669206"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:58:15.671789"], ["updated_at", "2016-05-16 20:58:15.671789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: d1e3f1d8-d071-45ed-99a1-ce6bf3746a67) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:58:15.658060"], ["updated_at", "2016-05-16 20:58:15.658060"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.686156"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:58:15.662186"], ["updated_at", "2016-05-16 20:58:15.662186"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.690893"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:58:15.666312"], ["updated_at", "2016-05-16 20:58:15.666312"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.695476"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:58:15.697817"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d1e3f1d8-d071-45ed-99a1-ce6bf3746a67] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.69ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:58:15.711753"], ["updated_at", "2016-05-16 20:58:15.711753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 20:58:15.714715"], ["updated_at", "2016-05-16 20:58:15.714715"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:15.717113"], ["updated_at", "2016-05-16 20:58:15.717113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:15.719218"], ["updated_at", "2016-05-16 20:58:15.719218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 20:58:15.722115"], ["updated_at", "2016-05-16 20:58:15.722115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.723630"], ["updated_at", "2016-05-16 20:58:15.723630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 20:58:15.726247"], ["updated_at", "2016-05-16 20:58:15.726247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.727763"], ["updated_at", "2016-05-16 20:58:15.727763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 20:58:15.730359"], ["updated_at", "2016-05-16 20:58:15.730359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.731831"], ["updated_at", "2016-05-16 20:58:15.731831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 20:58:15.734367"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:58:15.736084"], ["updated_at", "2016-05-16 20:58:15.736084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 3c589cb5-f77f-42f6-ae11-72f88fed208d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:58:15.723630"], ["updated_at", "2016-05-16 20:58:15.723630"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.746300"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:58:15.727763"], ["updated_at", "2016-05-16 20:58:15.727763"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.752320"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:58:15.731831"], ["updated_at", "2016-05-16 20:58:15.731831"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.757299"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:58:15.759539"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c589cb5-f77f-42f6-ae11-72f88fed208d] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.7ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 20:58:15.766059"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:58:15.767564"], ["updated_at", "2016-05-16 20:58:15.767564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: edd11bf8-ced8-4cbb-a1bf-221c5cedce93) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:58:15.723630"], ["updated_at", "2016-05-16 20:58:15.723630"]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 20:58:15.775855"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:58:15.727763"], ["updated_at", "2016-05-16 20:58:15.727763"]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 20:58:15.780484"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:58:15.731831"], ["updated_at", "2016-05-16 20:58:15.731831"]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 20:58:15.785089"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:58:15.787729"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [edd11bf8-ced8-4cbb-a1bf-221c5cedce93] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.45ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:58:15.800383"], ["updated_at", "2016-05-16 20:58:15.800383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 20:58:15.803196"], ["updated_at", "2016-05-16 20:58:15.803196"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:15.805995"], ["updated_at", "2016-05-16 20:58:15.805995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:15.807699"], ["updated_at", "2016-05-16 20:58:15.807699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 20:58:15.810342"], ["updated_at", "2016-05-16 20:58:15.810342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.811869"], ["updated_at", "2016-05-16 20:58:15.811869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 20:58:15.814453"], ["updated_at", "2016-05-16 20:58:15.814453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.815857"], ["updated_at", "2016-05-16 20:58:15.815857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 20:58:15.818484"], ["updated_at", "2016-05-16 20:58:15.818484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 20:58:15.819918"], ["updated_at", "2016-05-16 20:58:15.819918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 20:58:15.822001"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 20:58:15.823447"], ["updated_at", "2016-05-16 20:58:15.823447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 4e795631-b98f-4dbd-b17a-215c0b8ba564) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:58:15.811869"], ["updated_at", "2016-05-16 20:58:15.811869"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.831058"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 20:58:15.815857"], ["updated_at", "2016-05-16 20:58:15.815857"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.837317"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 20:58:15.819918"], ["updated_at", "2016-05-16 20:58:15.819918"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 20:58:15.841944"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 20:58:15.844205"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e795631-b98f-4dbd-b17a-215c0b8ba564] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.36ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 20:58:15.850091"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 20:58:15.861318"], ["updated_at", "2016-05-16 20:58:15.861318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 20:58:15.872722"], ["updated_at", "2016-05-16 20:58:15.872722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 20:58:15.877891"], ["updated_at", "2016-05-16 20:58:15.877891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 20:58:15.883210"], ["updated_at", "2016-05-16 20:58:15.883210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 20:58:15.888548"], ["updated_at", "2016-05-16 20:58:15.888548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:58:15.890175"], ["updated_at", "2016-05-16 20:58:15.890175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 20:58:15.896787"], ["updated_at", "2016-05-16 20:58:15.896787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 20:58:15.898529"], ["updated_at", "2016-05-16 20:58:15.898529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 20:58:15.905453"], ["updated_at", "2016-05-16 20:58:15.905453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 20:58:15.910666"], ["updated_at", "2016-05-16 20:58:15.910666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 20:58:15.915667"], ["updated_at", "2016-05-16 20:58:15.915667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:58:16.055783"], ["updated_at", "2016-05-16 20:58:16.055783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:58:16.074623"], ["updated_at", "2016-05-16 20:58:16.074623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 20:58:16.078875"], ["updated_at", "2016-05-16 20:58:16.078875"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:16.081093"], ["updated_at", "2016-05-16 20:58:16.081093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:58:16.086822"], ["updated_at", "2016-05-16 20:58:16.086822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 20:58:16.090117"], ["updated_at", "2016-05-16 20:58:16.090117"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:16.092116"], ["updated_at", "2016-05-16 20:58:16.092116"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 20:58:16.094895"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 20:58:16.108433"], ["updated_at", "2016-05-16 20:58:16.108433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:58:16.113324"], ["updated_at", "2016-05-16 20:58:16.113324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 20:58:16.116105"], ["updated_at", "2016-05-16 20:58:16.116105"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:16.117970"], ["updated_at", "2016-05-16 20:58:16.117970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:16.119831"], ["updated_at", "2016-05-16 20:58:16.119831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:58:16.144328"], ["updated_at", "2016-05-16 20:58:16.144328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 20:58:16.147490"], ["updated_at", "2016-05-16 20:58:16.147490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 20:58:16.210292"], ["updated_at", "2016-05-16 20:58:16.210292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:58:16.225962"], ["updated_at", "2016-05-16 20:58:16.225962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 20:58:16.228992"], ["updated_at", "2016-05-16 20:58:16.228992"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:16.232231"], ["updated_at", "2016-05-16 20:58:16.232231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 20:58:16.255266"], ["updated_at", "2016-05-16 20:58:16.255266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 20:58:16.258307"], ["updated_at", "2016-05-16 20:58:16.258307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 20:58:16.261563"], ["updated_at", "2016-05-16 20:58:16.261563"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:16.264477"], ["updated_at", "2016-05-16 20:58:16.264477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 20:58:16.266575"], ["updated_at", "2016-05-16 20:58:16.266575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 20:58:16.269684"], ["updated_at", "2016-05-16 20:58:16.269684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.4ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction 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';  (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.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.7ms) 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';  (0.8ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:04:16.378405"], ["updated_at", "2016-05-16 21:04:16.378405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (0.3ms) Completed 200 OK in 44ms (Views: 12.3ms | ActiveRecord: 1.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:04:16.437221"], ["updated_at", "2016-05-16 21:04:16.437221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 7ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:04:16.455322"], ["updated_at", "2016-05-16 21:04:16.455322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 2.0ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:04:16.477350"], ["updated_at", "2016-05-16 21:04:16.477350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:04:16.502461"], ["updated_at", "2016-05-16 21:04:16.502461"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 21:04:16.621797"], ["updated_at", "2016-05-16 21:04:16.621797"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:16.624850"], ["updated_at", "2016-05-16 21:04:16.624850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:16.627115"], ["updated_at", "2016-05-16 21:04:16.627115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 21:04:16.639882"], ["updated_at", "2016-05-16 21:04:16.639882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.642268"], ["updated_at", "2016-05-16 21:04:16.642268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 21:04:16.645067"], ["updated_at", "2016-05-16 21:04:16.645067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.646492"], ["updated_at", "2016-05-16 21:04:16.646492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 21:04:16.648974"], ["updated_at", "2016-05-16 21:04:16.648974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.650371"], ["updated_at", "2016-05-16 21:04:16.650371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:04:16.655690"], ["updated_at", "2016-05-16 21:04:16.655690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:04:16.642268"], ["updated_at", "2016-05-16 21:04:16.642268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.663927"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:04:16.646492"], ["updated_at", "2016-05-16 21:04:16.646492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.668952"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:04:16.650371"], ["updated_at", "2016-05-16 21:04:16.650371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.673686"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:04:16.682790"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:04:16.694186"], ["updated_at", "2016-05-16 21:04:16.694186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 21:04:16.697293"], ["updated_at", "2016-05-16 21:04:16.697293"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:16.699809"], ["updated_at", "2016-05-16 21:04:16.699809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:16.701616"], ["updated_at", "2016-05-16 21:04:16.701616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 21:04:16.704847"], ["updated_at", "2016-05-16 21:04:16.704847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.706489"], ["updated_at", "2016-05-16 21:04:16.706489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 21:04:16.709160"], ["updated_at", "2016-05-16 21:04:16.709160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.711120"], ["updated_at", "2016-05-16 21:04:16.711120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 21:04:16.714154"], ["updated_at", "2016-05-16 21:04:16.714154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.715631"], ["updated_at", "2016-05-16 21:04:16.715631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:04:16.717445"], ["updated_at", "2016-05-16 21:04:16.717445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:04:16.706489"], ["updated_at", "2016-05-16 21:04:16.706489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.723596"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:04:16.711120"], ["updated_at", "2016-05-16 21:04:16.711120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.728966"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:04:16.715631"], ["updated_at", "2016-05-16 21:04:16.715631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.734832"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:04:16.737194"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:04:16.747099"], ["updated_at", "2016-05-16 21:04:16.747099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 21:04:16.754557"], ["updated_at", "2016-05-16 21:04:16.754557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 21:04:16.756974"], ["updated_at", "2016-05-16 21:04:16.756974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 21:04:16.759698"], ["updated_at", "2016-05-16 21:04:16.759698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 21:04:16.761016"], ["updated_at", "2016-05-16 21:04:16.761016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 21:04:16.763254"], ["updated_at", "2016-05-16 21:04:16.763254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 21:04:16.764563"], ["updated_at", "2016-05-16 21:04:16.764563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 21:04:16.769084"], ["updated_at", "2016-05-16 21:04:16.769084"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:16.770838"], ["updated_at", "2016-05-16 21:04:16.770838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 21:04:16.778026"], ["updated_at", "2016-05-16 21:04:16.778026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 21:04:16.783007"], ["updated_at", "2016-05-16 21:04:16.783007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 21:04:16.787945"], ["updated_at", "2016-05-16 21:04:16.787945"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:04:16.796137"], ["updated_at", "2016-05-16 21:04:16.796137"]]  (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 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 21:04:16.799190"], ["updated_at", "2016-05-16 21:04:16.799190"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:16.801279"], ["updated_at", "2016-05-16 21:04:16.801279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:16.803127"], ["updated_at", "2016-05-16 21:04:16.803127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 21:04:16.805941"], ["updated_at", "2016-05-16 21:04:16.805941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.807493"], ["updated_at", "2016-05-16 21:04:16.807493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 21:04:16.810801"], ["updated_at", "2016-05-16 21:04:16.810801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.812400"], ["updated_at", "2016-05-16 21:04:16.812400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 21:04:16.815386"], ["updated_at", "2016-05-16 21:04:16.815386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.817110"], ["updated_at", "2016-05-16 21:04:16.817110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 21:04:16.819724"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:04:16.821323"], ["updated_at", "2016-05-16 21:04:16.821323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 41246bd7-62ea-431f-9526-cba40ebc741a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:04:16.807493"], ["updated_at", "2016-05-16 21:04:16.807493"]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.835282"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:04:16.812400"], ["updated_at", "2016-05-16 21:04:16.812400"]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.839628"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:04:16.817110"], ["updated_at", "2016-05-16 21:04:16.817110"]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.843912"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:04:16.846475"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [41246bd7-62ea-431f-9526-cba40ebc741a] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.18ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:04:16.859585"], ["updated_at", "2016-05-16 21:04:16.859585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 21:04:16.862428"], ["updated_at", "2016-05-16 21:04:16.862428"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:16.865151"], ["updated_at", "2016-05-16 21:04:16.865151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:16.866894"], ["updated_at", "2016-05-16 21:04:16.866894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 21:04:16.869468"], ["updated_at", "2016-05-16 21:04:16.869468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.870967"], ["updated_at", "2016-05-16 21:04:16.870967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 21:04:16.873569"], ["updated_at", "2016-05-16 21:04:16.873569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.874978"], ["updated_at", "2016-05-16 21:04:16.874978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 21:04:16.877491"], ["updated_at", "2016-05-16 21:04:16.877491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.878893"], ["updated_at", "2016-05-16 21:04:16.878893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 21:04:16.881161"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:04:16.882864"], ["updated_at", "2016-05-16 21:04:16.882864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: a51ede2d-ac15-42f3-b06d-1e8211a465d0) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:04:16.870967"], ["updated_at", "2016-05-16 21:04:16.870967"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.890941"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:04:16.874978"], ["updated_at", "2016-05-16 21:04:16.874978"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.896237"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:04:16.878893"], ["updated_at", "2016-05-16 21:04:16.878893"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.901589"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:04:16.903914"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a51ede2d-ac15-42f3-b06d-1e8211a465d0] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.11ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 21:04:16.910411"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:04:16.912024"], ["updated_at", "2016-05-16 21:04:16.912024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: e79d1aa3-c319-41d1-ab95-66b5a99c3fba) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:04:16.870967"], ["updated_at", "2016-05-16 21:04:16.870967"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 21:04:16.920443"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:04:16.874978"], ["updated_at", "2016-05-16 21:04:16.874978"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 21:04:16.925062"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:04:16.878893"], ["updated_at", "2016-05-16 21:04:16.878893"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 21:04:16.929582"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:04:16.931850"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e79d1aa3-c319-41d1-ab95-66b5a99c3fba] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.07ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:04:16.946199"], ["updated_at", "2016-05-16 21:04:16.946199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 21:04:16.949398"], ["updated_at", "2016-05-16 21:04:16.949398"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:16.951896"], ["updated_at", "2016-05-16 21:04:16.951896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:16.953945"], ["updated_at", "2016-05-16 21:04:16.953945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 21:04:16.956880"], ["updated_at", "2016-05-16 21:04:16.956880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.958343"], ["updated_at", "2016-05-16 21:04:16.958343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 21:04:16.960864"], ["updated_at", "2016-05-16 21:04:16.960864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.962608"], ["updated_at", "2016-05-16 21:04:16.962608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 21:04:16.966840"], ["updated_at", "2016-05-16 21:04:16.966840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:04:16.968696"], ["updated_at", "2016-05-16 21:04:16.968696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 21:04:16.971221"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:04:16.973206"], ["updated_at", "2016-05-16 21:04:16.973206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6704394a-3ceb-4497-97aa-44699cfe86dd) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:04:16.958343"], ["updated_at", "2016-05-16 21:04:16.958343"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.983578"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:04:16.962608"], ["updated_at", "2016-05-16 21:04:16.962608"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.988300"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:04:16.968696"], ["updated_at", "2016-05-16 21:04:16.968696"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:04:16.994784"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:04:16.997505"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6704394a-3ceb-4497-97aa-44699cfe86dd] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.51ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 21:04:17.004090"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 21:04:17.018842"], ["updated_at", "2016-05-16 21:04:17.018842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 21:04:17.029761"], ["updated_at", "2016-05-16 21:04:17.029761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 21:04:17.034783"], ["updated_at", "2016-05-16 21:04:17.034783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 21:04:17.040673"], ["updated_at", "2016-05-16 21:04:17.040673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 21:04:17.046389"], ["updated_at", "2016-05-16 21:04:17.046389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:04:17.049432"], ["updated_at", "2016-05-16 21:04:17.049432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 21:04:17.055959"], ["updated_at", "2016-05-16 21:04:17.055959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:04:17.057684"], ["updated_at", "2016-05-16 21:04:17.057684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 21:04:17.063289"], ["updated_at", "2016-05-16 21:04:17.063289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 21:04:17.069136"], ["updated_at", "2016-05-16 21:04:17.069136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 21:04:17.075017"], ["updated_at", "2016-05-16 21:04:17.075017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:04:17.210906"], ["updated_at", "2016-05-16 21:04:17.210906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:04:17.226445"], ["updated_at", "2016-05-16 21:04:17.226445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 21:04:17.229338"], ["updated_at", "2016-05-16 21:04:17.229338"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:17.231506"], ["updated_at", "2016-05-16 21:04:17.231506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:04:17.241170"], ["updated_at", "2016-05-16 21:04:17.241170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 21:04:17.243737"], ["updated_at", "2016-05-16 21:04:17.243737"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:17.245518"], ["updated_at", "2016-05-16 21:04:17.245518"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 21:04:17.248548"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 21:04:17.260608"], ["updated_at", "2016-05-16 21:04:17.260608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:04:17.264895"], ["updated_at", "2016-05-16 21:04:17.264895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 21:04:17.269337"], ["updated_at", "2016-05-16 21:04:17.269337"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:17.270907"], ["updated_at", "2016-05-16 21:04:17.270907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:17.272341"], ["updated_at", "2016-05-16 21:04:17.272341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:04:17.309814"], ["updated_at", "2016-05-16 21:04:17.309814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 21:04:17.314587"], ["updated_at", "2016-05-16 21:04:17.314587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.5ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 21:04:17.378932"], ["updated_at", "2016-05-16 21:04:17.378932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:04:17.396181"], ["updated_at", "2016-05-16 21:04:17.396181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.7ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 21:04:17.400705"], ["updated_at", "2016-05-16 21:04:17.400705"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:17.403233"], ["updated_at", "2016-05-16 21:04:17.403233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 21:04:17.425389"], ["updated_at", "2016-05-16 21:04:17.425389"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:04:17.428287"], ["updated_at", "2016-05-16 21:04:17.428287"]]  (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 1 [["slug", "winterfell-news-12"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 21:04:17.431694"], ["updated_at", "2016-05-16 21:04:17.431694"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:17.434016"], ["updated_at", "2016-05-16 21:04:17.434016"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:04:17.435966"], ["updated_at", "2016-05-16 21:04:17.435966"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 21:04:17.439212"], ["updated_at", "2016-05-16 21:04:17.439212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.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';  (0.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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.8ms) 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.7ms) 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';  (0.7ms) 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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:05:03.771726"], ["updated_at", "2016-05-16 21:05:03.771726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 37ms (Views: 9.7ms | ActiveRecord: 1.0ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:05:03.822705"], ["updated_at", "2016-05-16 21:05:03.822705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Completed 500 Internal Server Error in 6ms  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:05:03.838446"], ["updated_at", "2016-05-16 21:05:03.838446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 1.9ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:05:03.860468"], ["updated_at", "2016-05-16 21:05:03.860468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.1ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:05:03.891068"], ["updated_at", "2016-05-16 21:05:03.891068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 21:05:04.011926"], ["updated_at", "2016-05-16 21:05:04.011926"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.015820"], ["updated_at", "2016-05-16 21:05:04.015820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.018180"], ["updated_at", "2016-05-16 21:05:04.018180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 21:05:04.033223"], ["updated_at", "2016-05-16 21:05:04.033223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.036029"], ["updated_at", "2016-05-16 21:05:04.036029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 21:05:04.039192"], ["updated_at", "2016-05-16 21:05:04.039192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.040624"], ["updated_at", "2016-05-16 21:05:04.040624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 21:05:04.043292"], ["updated_at", "2016-05-16 21:05:04.043292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.044742"], ["updated_at", "2016-05-16 21:05:04.044742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:05:04.048478"], ["updated_at", "2016-05-16 21:05:04.048478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec 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 1 [["post_id", 1], ["status", 4]] 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]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:05:04.036029"], ["updated_at", "2016-05-16 21:05:04.036029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.058215"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:05:04.040624"], ["updated_at", "2016-05-16 21:05:04.040624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.063755"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:05:04.044742"], ["updated_at", "2016-05-16 21:05:04.044742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.068512"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:05:04.075119"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:05:04.084883"], ["updated_at", "2016-05-16 21:05:04.084883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 21:05:04.087731"], ["updated_at", "2016-05-16 21:05:04.087731"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.089815"], ["updated_at", "2016-05-16 21:05:04.089815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.091749"], ["updated_at", "2016-05-16 21:05:04.091749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 21:05:04.094409"], ["updated_at", "2016-05-16 21:05:04.094409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.095962"], ["updated_at", "2016-05-16 21:05:04.095962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 21:05:04.099117"], ["updated_at", "2016-05-16 21:05:04.099117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.100830"], ["updated_at", "2016-05-16 21:05:04.100830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 21:05:04.103565"], ["updated_at", "2016-05-16 21:05:04.103565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.105019"], ["updated_at", "2016-05-16 21:05:04.105019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:05:04.106814"], ["updated_at", "2016-05-16 21:05:04.106814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:05:04.095962"], ["updated_at", "2016-05-16 21:05:04.095962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.112922"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:05:04.100830"], ["updated_at", "2016-05-16 21:05:04.100830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.119882"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:05:04.105019"], ["updated_at", "2016-05-16 21:05:04.105019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.126136"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:05:04.128378"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:05:04.138836"], ["updated_at", "2016-05-16 21:05:04.138836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 21:05:04.145939"], ["updated_at", "2016-05-16 21:05:04.145939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 21:05:04.148642"], ["updated_at", "2016-05-16 21:05:04.148642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 21:05:04.151486"], ["updated_at", "2016-05-16 21:05:04.151486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 21:05:04.152935"], ["updated_at", "2016-05-16 21:05:04.152935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 21:05:04.155828"], ["updated_at", "2016-05-16 21:05:04.155828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 21:05:04.157424"], ["updated_at", "2016-05-16 21:05:04.157424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 21:05:04.162551"], ["updated_at", "2016-05-16 21:05:04.162551"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.164297"], ["updated_at", "2016-05-16 21:05:04.164297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 21:05:04.173171"], ["updated_at", "2016-05-16 21:05:04.173171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 21:05:04.178639"], ["updated_at", "2016-05-16 21:05:04.178639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 21:05:04.186353"], ["updated_at", "2016-05-16 21:05:04.186353"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:05:04.196732"], ["updated_at", "2016-05-16 21:05:04.196732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 21:05:04.199680"], ["updated_at", "2016-05-16 21:05:04.199680"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.201712"], ["updated_at", "2016-05-16 21:05:04.201712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.203754"], ["updated_at", "2016-05-16 21:05:04.203754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 21:05:04.206515"], ["updated_at", "2016-05-16 21:05:04.206515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.208054"], ["updated_at", "2016-05-16 21:05:04.208054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 21:05:04.210655"], ["updated_at", "2016-05-16 21:05:04.210655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.212099"], ["updated_at", "2016-05-16 21:05:04.212099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 21:05:04.215562"], ["updated_at", "2016-05-16 21:05:04.215562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.217280"], ["updated_at", "2016-05-16 21:05:04.217280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 21:05:04.219523"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:05:04.220993"], ["updated_at", "2016-05-16 21:05:04.220993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 75fb55fc-6f55-4611-bc40-d830ba2e107e) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:05:04.208054"], ["updated_at", "2016-05-16 21:05:04.208054"]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.234006"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:05:04.212099"], ["updated_at", "2016-05-16 21:05:04.212099"]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.238791"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:05:04.217280"], ["updated_at", "2016-05-16 21:05:04.217280"]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.243025"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:05:04.245606"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75fb55fc-6f55-4611-bc40-d830ba2e107e] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.69ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:05:04.258795"], ["updated_at", "2016-05-16 21:05:04.258795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 21:05:04.261652"], ["updated_at", "2016-05-16 21:05:04.261652"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.263733"], ["updated_at", "2016-05-16 21:05:04.263733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.265698"], ["updated_at", "2016-05-16 21:05:04.265698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 21:05:04.268487"], ["updated_at", "2016-05-16 21:05:04.268487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.270074"], ["updated_at", "2016-05-16 21:05:04.270074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 21:05:04.272671"], ["updated_at", "2016-05-16 21:05:04.272671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.274073"], ["updated_at", "2016-05-16 21:05:04.274073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 21:05:04.277039"], ["updated_at", "2016-05-16 21:05:04.277039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.278524"], ["updated_at", "2016-05-16 21:05:04.278524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 21:05:04.280706"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:05:04.283204"], ["updated_at", "2016-05-16 21:05:04.283204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 598d654f-49b9-4f8b-a8f1-42ee94bc407d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:05:04.270074"], ["updated_at", "2016-05-16 21:05:04.270074"]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.293630"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:05:04.274073"], ["updated_at", "2016-05-16 21:05:04.274073"]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.299475"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:05:04.278524"], ["updated_at", "2016-05-16 21:05:04.278524"]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.304364"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:05:04.307001"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [598d654f-49b9-4f8b-a8f1-42ee94bc407d] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.28ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 21:05:04.313703"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:05:04.315692"], ["updated_at", "2016-05-16 21:05:04.315692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 840137ca-500f-46c6-bb42-a24420a6170f) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:05:04.270074"], ["updated_at", "2016-05-16 21:05:04.270074"]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 21:05:04.323870"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:05:04.274073"], ["updated_at", "2016-05-16 21:05:04.274073"]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 21:05:04.328251"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:05:04.278524"], ["updated_at", "2016-05-16 21:05:04.278524"]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 21:05:04.332516"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:05:04.334758"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [840137ca-500f-46c6-bb42-a24420a6170f] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.53ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:05:04.347393"], ["updated_at", "2016-05-16 21:05:04.347393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 21:05:04.350618"], ["updated_at", "2016-05-16 21:05:04.350618"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.352682"], ["updated_at", "2016-05-16 21:05:04.352682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.354564"], ["updated_at", "2016-05-16 21:05:04.354564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 21:05:04.357259"], ["updated_at", "2016-05-16 21:05:04.357259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.358749"], ["updated_at", "2016-05-16 21:05:04.358749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 21:05:04.361321"], ["updated_at", "2016-05-16 21:05:04.361321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.362772"], ["updated_at", "2016-05-16 21:05:04.362772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 21:05:04.365337"], ["updated_at", "2016-05-16 21:05:04.365337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.366782"], ["updated_at", "2016-05-16 21:05:04.366782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 21:05:04.368894"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:05:04.370619"], ["updated_at", "2016-05-16 21:05:04.370619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ec2c67c7-0b6f-4b63-9792-849c6547d559) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:05:04.358749"], ["updated_at", "2016-05-16 21:05:04.358749"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.379540"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:05:04.362772"], ["updated_at", "2016-05-16 21:05:04.362772"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.387070"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:05:04.366782"], ["updated_at", "2016-05-16 21:05:04.366782"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:05:04.391516"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:05:04.393755"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ec2c67c7-0b6f-4b63-9792-849c6547d559] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.42ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 21:05:04.399822"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 21:05:04.411068"], ["updated_at", "2016-05-16 21:05:04.411068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 21:05:04.420976"], ["updated_at", "2016-05-16 21:05:04.420976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 21:05:04.426329"], ["updated_at", "2016-05-16 21:05:04.426329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 21:05:04.431699"], ["updated_at", "2016-05-16 21:05:04.431699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 21:05:04.436938"], ["updated_at", "2016-05-16 21:05:04.436938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:05:04.438648"], ["updated_at", "2016-05-16 21:05:04.438648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 21:05:04.445385"], ["updated_at", "2016-05-16 21:05:04.445385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:05:04.447107"], ["updated_at", "2016-05-16 21:05:04.447107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 21:05:04.453903"], ["updated_at", "2016-05-16 21:05:04.453903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 21:05:04.459069"], ["updated_at", "2016-05-16 21:05:04.459069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 21:05:04.464854"], ["updated_at", "2016-05-16 21:05:04.464854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:05:04.603030"], ["updated_at", "2016-05-16 21:05:04.603030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:05:04.619258"], ["updated_at", "2016-05-16 21:05:04.619258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 21:05:04.626356"], ["updated_at", "2016-05-16 21:05:04.626356"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.628530"], ["updated_at", "2016-05-16 21:05:04.628530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:05:04.634273"], ["updated_at", "2016-05-16 21:05:04.634273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 21:05:04.636975"], ["updated_at", "2016-05-16 21:05:04.636975"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.638808"], ["updated_at", "2016-05-16 21:05:04.638808"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 21:05:04.642059"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 21:05:04.656842"], ["updated_at", "2016-05-16 21:05:04.656842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:05:04.660765"], ["updated_at", "2016-05-16 21:05:04.660765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 21:05:04.663485"], ["updated_at", "2016-05-16 21:05:04.663485"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.665037"], ["updated_at", "2016-05-16 21:05:04.665037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.667238"], ["updated_at", "2016-05-16 21:05:04.667238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:05:04.691622"], ["updated_at", "2016-05-16 21:05:04.691622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 21:05:04.712979"], ["updated_at", "2016-05-16 21:05:04.712979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 21:05:04.770075"], ["updated_at", "2016-05-16 21:05:04.770075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:05:04.788375"], ["updated_at", "2016-05-16 21:05:04.788375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 21:05:04.791576"], ["updated_at", "2016-05-16 21:05:04.791576"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.794117"], ["updated_at", "2016-05-16 21:05:04.794117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 21:05:04.815158"], ["updated_at", "2016-05-16 21:05:04.815158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:05:04.818671"], ["updated_at", "2016-05-16 21:05:04.818671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 21:05:04.821511"], ["updated_at", "2016-05-16 21:05:04.821511"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.825001"], ["updated_at", "2016-05-16 21:05:04.825001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:05:04.827216"], ["updated_at", "2016-05-16 21:05:04.827216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 21:05:04.830077"], ["updated_at", "2016-05-16 21:05:04.830077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction 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';  (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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.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.7ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:08:01.445519"], ["updated_at", "2016-05-16 21:08:01.445519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (0.3ms) Completed 200 OK in 38ms (Views: 10.5ms | ActiveRecord: 1.2ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:08:01.499164"], ["updated_at", "2016-05-16 21:08:01.499164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.7ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:08:01.532668"], ["updated_at", "2016-05-16 21:08:01.532668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 1.9ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:08:01.551787"], ["updated_at", "2016-05-16 21:08:01.551787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:01.578697"], ["updated_at", "2016-05-16 21:08:01.578697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 21:08:01.701797"], ["updated_at", "2016-05-16 21:08:01.701797"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:01.704779"], ["updated_at", "2016-05-16 21:08:01.704779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:01.706953"], ["updated_at", "2016-05-16 21:08:01.706953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 21:08:01.719558"], ["updated_at", "2016-05-16 21:08:01.719558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:08:01.722243"], ["updated_at", "2016-05-16 21:08:01.722243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 21:08:01.726061"], ["updated_at", "2016-05-16 21:08:01.726061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:08:01.727948"], ["updated_at", "2016-05-16 21:08:01.727948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 21:08:01.730897"], ["updated_at", "2016-05-16 21:08:01.730897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:08:01.732332"], ["updated_at", "2016-05-16 21:08:01.732332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:08:01.735989"], ["updated_at", "2016-05-16 21:08:01.735989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:01.722243"], ["updated_at", "2016-05-16 21:08:01.722243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:01.745161"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:08:01.727948"], ["updated_at", "2016-05-16 21:08:01.727948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:01.750289"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:08:01.732332"], ["updated_at", "2016-05-16 21:08:01.732332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:01.755364"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:08:01.762879"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:01.774114"], ["updated_at", "2016-05-16 21:08:01.774114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 21:08:01.777089"], ["updated_at", "2016-05-16 21:08:01.777089"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:01.779659"], ["updated_at", "2016-05-16 21:08:01.779659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:01.781383"], ["updated_at", "2016-05-16 21:08:01.781383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 21:08:01.784022"], ["updated_at", "2016-05-16 21:08:01.784022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:08:01.785524"], ["updated_at", "2016-05-16 21:08:01.785524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 21:08:01.789110"], ["updated_at", "2016-05-16 21:08:01.789110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:08:01.790760"], ["updated_at", "2016-05-16 21:08:01.790760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 21:08:01.793445"], ["updated_at", "2016-05-16 21:08:01.793445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:08:01.794861"], ["updated_at", "2016-05-16 21:08:01.794861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:08:01.796702"], ["updated_at", "2016-05-16 21:08:01.796702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:01.785524"], ["updated_at", "2016-05-16 21:08:01.785524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:01.802922"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:08:01.790760"], ["updated_at", "2016-05-16 21:08:01.790760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:01.807963"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:08:01.794861"], ["updated_at", "2016-05-16 21:08:01.794861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:01.813573"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:08:01.816042"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:01.826093"], ["updated_at", "2016-05-16 21:08:01.826093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 21:08:01.833263"], ["updated_at", "2016-05-16 21:08:01.833263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 21:08:01.835901"], ["updated_at", "2016-05-16 21:08:01.835901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 21:08:01.838562"], ["updated_at", "2016-05-16 21:08:01.838562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 21:08:01.840105"], ["updated_at", "2016-05-16 21:08:01.840105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 21:08:01.842706"], ["updated_at", "2016-05-16 21:08:01.842706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 21:08:01.844186"], ["updated_at", "2016-05-16 21:08:01.844186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 21:08:01.849129"], ["updated_at", "2016-05-16 21:08:01.849129"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:01.850824"], ["updated_at", "2016-05-16 21:08:01.850824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 21:08:01.858501"], ["updated_at", "2016-05-16 21:08:01.858501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 21:08:01.863493"], ["updated_at", "2016-05-16 21:08:01.863493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 21:08:01.867462"], ["updated_at", "2016-05-16 21:08:01.867462"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:01.876404"], ["updated_at", "2016-05-16 21:08:01.876404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 21:08:01.879631"], ["updated_at", "2016-05-16 21:08:01.879631"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:01.882144"], ["updated_at", "2016-05-16 21:08:01.882144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:01.884129"], ["updated_at", "2016-05-16 21:08:01.884129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 21:08:01.886723"], ["updated_at", "2016-05-16 21:08:01.886723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:08:01.888265"], ["updated_at", "2016-05-16 21:08:01.888265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 21:08:01.893311"], ["updated_at", "2016-05-16 21:08:01.893311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:08:01.895095"], ["updated_at", "2016-05-16 21:08:01.895095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 21:08:01.898092"], ["updated_at", "2016-05-16 21:08:01.898092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:08:01.899847"], ["updated_at", "2016-05-16 21:08:01.899847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 21:08:01.902597"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:08:01.904078"], ["updated_at", "2016-05-16 21:08:01.904078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 7655dd53-ded9-4968-b80a-bc84f2d2e198) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.3ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:01.888265"], ["updated_at", "2016-05-16 21:08:01.888265"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:01.918723"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:08:01.895095"], ["updated_at", "2016-05-16 21:08:01.895095"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:01.923764"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:08:01.899847"], ["updated_at", "2016-05-16 21:08:01.899847"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:01.928788"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:08:01.931150"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7655dd53-ded9-4968-b80a-bc84f2d2e198] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.33ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:01.942690"], ["updated_at", "2016-05-16 21:08:01.942690"]]  (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 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 21:08:01.945363"], ["updated_at", "2016-05-16 21:08:01.945363"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:01.947277"], ["updated_at", "2016-05-16 21:08:01.947277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:01.948788"], ["updated_at", "2016-05-16 21:08:01.948788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 21:08:01.951821"], ["updated_at", "2016-05-16 21:08:01.951821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:08:01.953474"], ["updated_at", "2016-05-16 21:08:01.953474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 21:08:01.956058"], ["updated_at", "2016-05-16 21:08:01.956058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:08:01.957511"], ["updated_at", "2016-05-16 21:08:01.957511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 21:08:01.960070"], ["updated_at", "2016-05-16 21:08:01.960070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:08:01.961786"], ["updated_at", "2016-05-16 21:08:01.961786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 21:08:01.964010"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:08:01.965437"], ["updated_at", "2016-05-16 21:08:01.965437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 1999d25b-1d78-4cf5-b645-19fd9e51cf08) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:01.953474"], ["updated_at", "2016-05-16 21:08:01.953474"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:01.972931"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:08:01.957511"], ["updated_at", "2016-05-16 21:08:01.957511"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:01.979532"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:08:01.961786"], ["updated_at", "2016-05-16 21:08:01.961786"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:01.984728"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:08:01.988420"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1999d25b-1d78-4cf5-b645-19fd9e51cf08] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.16ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 21:08:01.996237"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:08:01.997857"], ["updated_at", "2016-05-16 21:08:01.997857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2d37b174-d7a9-480a-a3e9-f8d6c487568d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:01.953474"], ["updated_at", "2016-05-16 21:08:01.953474"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 21:08:02.009109"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:08:01.957511"], ["updated_at", "2016-05-16 21:08:01.957511"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 21:08:02.016225"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:08:01.961786"], ["updated_at", "2016-05-16 21:08:01.961786"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 21:08:02.021299"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:08:02.024291"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d37b174-d7a9-480a-a3e9-f8d6c487568d] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.69ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:02.036103"], ["updated_at", "2016-05-16 21:08:02.036103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 21:08:02.039311"], ["updated_at", "2016-05-16 21:08:02.039311"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:02.041756"], ["updated_at", "2016-05-16 21:08:02.041756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:02.043595"], ["updated_at", "2016-05-16 21:08:02.043595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 21:08:02.046878"], ["updated_at", "2016-05-16 21:08:02.046878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:08:02.048652"], ["updated_at", "2016-05-16 21:08:02.048652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 21:08:02.051400"], ["updated_at", "2016-05-16 21:08:02.051400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:08:02.052838"], ["updated_at", "2016-05-16 21:08:02.052838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 21:08:02.055764"], ["updated_at", "2016-05-16 21:08:02.055764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:08:02.058415"], ["updated_at", "2016-05-16 21:08:02.058415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 21:08:02.061035"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:08:02.062771"], ["updated_at", "2016-05-16 21:08:02.062771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 66bfeb39-9aaa-476e-bf63-46f53efa420a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:02.048652"], ["updated_at", "2016-05-16 21:08:02.048652"]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:02.072559"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:08:02.052838"], ["updated_at", "2016-05-16 21:08:02.052838"]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:02.077994"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:08:02.058415"], ["updated_at", "2016-05-16 21:08:02.058415"]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:02.082374"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:08:02.084624"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66bfeb39-9aaa-476e-bf63-46f53efa420a] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.78ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 21:08:02.090078"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 21:08:02.100969"], ["updated_at", "2016-05-16 21:08:02.100969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 21:08:02.112811"], ["updated_at", "2016-05-16 21:08:02.112811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 21:08:02.117963"], ["updated_at", "2016-05-16 21:08:02.117963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 21:08:02.123255"], ["updated_at", "2016-05-16 21:08:02.123255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 21:08:02.128924"], ["updated_at", "2016-05-16 21:08:02.128924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:02.130982"], ["updated_at", "2016-05-16 21:08:02.130982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 21:08:02.138367"], ["updated_at", "2016-05-16 21:08:02.138367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:02.140947"], ["updated_at", "2016-05-16 21:08:02.140947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 21:08:02.146707"], ["updated_at", "2016-05-16 21:08:02.146707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 21:08:02.152069"], ["updated_at", "2016-05-16 21:08:02.152069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 21:08:02.156977"], ["updated_at", "2016-05-16 21:08:02.156977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:02.296933"], ["updated_at", "2016-05-16 21:08:02.296933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:02.312381"], ["updated_at", "2016-05-16 21:08:02.312381"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 21:08:02.320275"], ["updated_at", "2016-05-16 21:08:02.320275"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:02.322643"], ["updated_at", "2016-05-16 21:08:02.322643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:02.327242"], ["updated_at", "2016-05-16 21:08:02.327242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 21:08:02.329936"], ["updated_at", "2016-05-16 21:08:02.329936"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:02.331878"], ["updated_at", "2016-05-16 21:08:02.331878"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 21:08:02.334377"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 21:08:02.348220"], ["updated_at", "2016-05-16 21:08:02.348220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:02.352643"], ["updated_at", "2016-05-16 21:08:02.352643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 21:08:02.355609"], ["updated_at", "2016-05-16 21:08:02.355609"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:02.358290"], ["updated_at", "2016-05-16 21:08:02.358290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:02.359958"], ["updated_at", "2016-05-16 21:08:02.359958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:02.381778"], ["updated_at", "2016-05-16 21:08:02.381778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 21:08:02.401281"], ["updated_at", "2016-05-16 21:08:02.401281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 21:08:02.462744"], ["updated_at", "2016-05-16 21:08:02.462744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:02.478417"], ["updated_at", "2016-05-16 21:08:02.478417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 21:08:02.481604"], ["updated_at", "2016-05-16 21:08:02.481604"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:02.484116"], ["updated_at", "2016-05-16 21:08:02.484116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.4ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 21:08:02.506437"], ["updated_at", "2016-05-16 21:08:02.506437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:02.509625"], ["updated_at", "2016-05-16 21:08:02.509625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 21:08:02.512963"], ["updated_at", "2016-05-16 21:08:02.512963"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:02.515155"], ["updated_at", "2016-05-16 21:08:02.515155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:02.517474"], ["updated_at", "2016-05-16 21:08:02.517474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 21:08:02.520338"], ["updated_at", "2016-05-16 21:08:02.520338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.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.7ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.7ms) 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';  (0.7ms) 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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:08:33.068931"], ["updated_at", "2016-05-16 21:08:33.068931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (8.8ms) Completed 200 OK in 48ms (Views: 17.8ms | ActiveRecord: 1.1ms) Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:08:33.132204"], ["updated_at", "2016-05-16 21:08:33.132204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (13.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (23.7ms) Completed 200 OK in 27ms (Views: 25.5ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:08:33.169737"], ["updated_at", "2016-05-16 21:08:33.169737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (3.8ms) Completed 200 OK in 9ms (Views: 4.3ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 21:08:33.190304"], ["updated_at", "2016-05-16 21:08:33.190304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:33.215141"], ["updated_at", "2016-05-16 21:08:33.215141"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 21:08:33.336737"], ["updated_at", "2016-05-16 21:08:33.336737"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.340391"], ["updated_at", "2016-05-16 21:08:33.340391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.343687"], ["updated_at", "2016-05-16 21:08:33.343687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 21:08:33.357587"], ["updated_at", "2016-05-16 21:08:33.357587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.359984"], ["updated_at", "2016-05-16 21:08:33.359984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 21:08:33.362966"], ["updated_at", "2016-05-16 21:08:33.362966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.364479"], ["updated_at", "2016-05-16 21:08:33.364479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 21:08:33.367017"], ["updated_at", "2016-05-16 21:08:33.367017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.368463"], ["updated_at", "2016-05-16 21:08:33.368463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:08:33.372227"], ["updated_at", "2016-05-16 21:08:33.372227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:33.359984"], ["updated_at", "2016-05-16 21:08:33.359984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.379096"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:08:33.364479"], ["updated_at", "2016-05-16 21:08:33.364479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.383560"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:08:33.368463"], ["updated_at", "2016-05-16 21:08:33.368463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.388504"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:08:33.396447"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:33.408064"], ["updated_at", "2016-05-16 21:08:33.408064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 21:08:33.411015"], ["updated_at", "2016-05-16 21:08:33.411015"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.413597"], ["updated_at", "2016-05-16 21:08:33.413597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.415402"], ["updated_at", "2016-05-16 21:08:33.415402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 21:08:33.418431"], ["updated_at", "2016-05-16 21:08:33.418431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.420050"], ["updated_at", "2016-05-16 21:08:33.420050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 21:08:33.423035"], ["updated_at", "2016-05-16 21:08:33.423035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.424792"], ["updated_at", "2016-05-16 21:08:33.424792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 21:08:33.427629"], ["updated_at", "2016-05-16 21:08:33.427629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.429090"], ["updated_at", "2016-05-16 21:08:33.429090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:08:33.430894"], ["updated_at", "2016-05-16 21:08:33.430894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:33.420050"], ["updated_at", "2016-05-16 21:08:33.420050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.436978"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:08:33.424792"], ["updated_at", "2016-05-16 21:08:33.424792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.442256"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:08:33.429090"], ["updated_at", "2016-05-16 21:08:33.429090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.447701"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:08:33.450218"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:33.460456"], ["updated_at", "2016-05-16 21:08:33.460456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 21:08:33.467612"], ["updated_at", "2016-05-16 21:08:33.467612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 21:08:33.470135"], ["updated_at", "2016-05-16 21:08:33.470135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 21:08:33.472653"], ["updated_at", "2016-05-16 21:08:33.472653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 21:08:33.474073"], ["updated_at", "2016-05-16 21:08:33.474073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 21:08:33.476196"], ["updated_at", "2016-05-16 21:08:33.476196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 21:08:33.477419"], ["updated_at", "2016-05-16 21:08:33.477419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 21:08:33.481946"], ["updated_at", "2016-05-16 21:08:33.481946"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.483619"], ["updated_at", "2016-05-16 21:08:33.483619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 21:08:33.490820"], ["updated_at", "2016-05-16 21:08:33.490820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 21:08:33.496386"], ["updated_at", "2016-05-16 21:08:33.496386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 21:08:33.501578"], ["updated_at", "2016-05-16 21:08:33.501578"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:33.510073"], ["updated_at", "2016-05-16 21:08:33.510073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 21:08:33.512677"], ["updated_at", "2016-05-16 21:08:33.512677"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.514619"], ["updated_at", "2016-05-16 21:08:33.514619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.516674"], ["updated_at", "2016-05-16 21:08:33.516674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 21:08:33.519556"], ["updated_at", "2016-05-16 21:08:33.519556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.521925"], ["updated_at", "2016-05-16 21:08:33.521925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 21:08:33.525433"], ["updated_at", "2016-05-16 21:08:33.525433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.527188"], ["updated_at", "2016-05-16 21:08:33.527188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 21:08:33.530111"], ["updated_at", "2016-05-16 21:08:33.530111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.531667"], ["updated_at", "2016-05-16 21:08:33.531667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 21:08:33.534005"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:08:33.535425"], ["updated_at", "2016-05-16 21:08:33.535425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 0fe863ac-36da-422c-a755-5e3276072d17) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:33.521925"], ["updated_at", "2016-05-16 21:08:33.521925"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.548137"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:08:33.527188"], ["updated_at", "2016-05-16 21:08:33.527188"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.553265"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:08:33.531667"], ["updated_at", "2016-05-16 21:08:33.531667"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.558161"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:08:33.560656"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0fe863ac-36da-422c-a755-5e3276072d17] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.4ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:33.573131"], ["updated_at", "2016-05-16 21:08:33.573131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 21:08:33.576094"], ["updated_at", "2016-05-16 21:08:33.576094"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.578258"], ["updated_at", "2016-05-16 21:08:33.578258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.580768"], ["updated_at", "2016-05-16 21:08:33.580768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 21:08:33.584220"], ["updated_at", "2016-05-16 21:08:33.584220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.585803"], ["updated_at", "2016-05-16 21:08:33.585803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 21:08:33.588734"], ["updated_at", "2016-05-16 21:08:33.588734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.590433"], ["updated_at", "2016-05-16 21:08:33.590433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 21:08:33.593100"], ["updated_at", "2016-05-16 21:08:33.593100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.594540"], ["updated_at", "2016-05-16 21:08:33.594540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 21:08:33.596662"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:08:33.598174"], ["updated_at", "2016-05-16 21:08:33.598174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6beb9c28-19fa-477e-a8ca-fd88fb67bd3d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:33.585803"], ["updated_at", "2016-05-16 21:08:33.585803"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.606708"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:08:33.590433"], ["updated_at", "2016-05-16 21:08:33.590433"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.611724"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:08:33.594540"], ["updated_at", "2016-05-16 21:08:33.594540"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.617328"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:08:33.619669"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6beb9c28-19fa-477e-a8ca-fd88fb67bd3d] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.82ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 21:08:33.626174"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:08:33.627677"], ["updated_at", "2016-05-16 21:08:33.627677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 617601ff-e204-4b60-b9b9-258014fff79b) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:33.585803"], ["updated_at", "2016-05-16 21:08:33.585803"]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 21:08:33.636291"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:08:33.590433"], ["updated_at", "2016-05-16 21:08:33.590433"]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 21:08:33.640867"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:08:33.594540"], ["updated_at", "2016-05-16 21:08:33.594540"]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 21:08:33.645439"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:08:33.648287"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [617601ff-e204-4b60-b9b9-258014fff79b] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.0ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:33.659610"], ["updated_at", "2016-05-16 21:08:33.659610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 21:08:33.662257"], ["updated_at", "2016-05-16 21:08:33.662257"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.664226"], ["updated_at", "2016-05-16 21:08:33.664226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.665782"], ["updated_at", "2016-05-16 21:08:33.665782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 21:08:33.668858"], ["updated_at", "2016-05-16 21:08:33.668858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.670427"], ["updated_at", "2016-05-16 21:08:33.670427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 21:08:33.673289"], ["updated_at", "2016-05-16 21:08:33.673289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.675193"], ["updated_at", "2016-05-16 21:08:33.675193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 21:08:33.677968"], ["updated_at", "2016-05-16 21:08:33.677968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 21:08:33.679425"], ["updated_at", "2016-05-16 21:08:33.679425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 21:08:33.681547"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 21:08:33.682943"], ["updated_at", "2016-05-16 21:08:33.682943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: d427c2bc-f484-4a1c-9534-64b0a74c0d1e) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:33.670427"], ["updated_at", "2016-05-16 21:08:33.670427"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.690618"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 21:08:33.675193"], ["updated_at", "2016-05-16 21:08:33.675193"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.696312"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 21:08:33.679425"], ["updated_at", "2016-05-16 21:08:33.679425"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 21:08:33.701726"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 21:08:33.704279"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d427c2bc-f484-4a1c-9534-64b0a74c0d1e] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.91ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 21:08:33.710356"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 21:08:33.720772"], ["updated_at", "2016-05-16 21:08:33.720772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 21:08:33.733840"], ["updated_at", "2016-05-16 21:08:33.733840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 21:08:33.739151"], ["updated_at", "2016-05-16 21:08:33.739151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 21:08:33.744596"], ["updated_at", "2016-05-16 21:08:33.744596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 21:08:33.750118"], ["updated_at", "2016-05-16 21:08:33.750118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:33.752554"], ["updated_at", "2016-05-16 21:08:33.752554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 21:08:33.759689"], ["updated_at", "2016-05-16 21:08:33.759689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 21:08:33.761427"], ["updated_at", "2016-05-16 21:08:33.761427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 21:08:33.766864"], ["updated_at", "2016-05-16 21:08:33.766864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 21:08:33.773187"], ["updated_at", "2016-05-16 21:08:33.773187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 21:08:33.779117"], ["updated_at", "2016-05-16 21:08:33.779117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:33.920719"], ["updated_at", "2016-05-16 21:08:33.920719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:33.941585"], ["updated_at", "2016-05-16 21:08:33.941585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 21:08:33.944310"], ["updated_at", "2016-05-16 21:08:33.944310"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.946399"], ["updated_at", "2016-05-16 21:08:33.946399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:33.951586"], ["updated_at", "2016-05-16 21:08:33.951586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 21:08:33.954257"], ["updated_at", "2016-05-16 21:08:33.954257"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.956522"], ["updated_at", "2016-05-16 21:08:33.956522"]]  (0.1ms) 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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 21:08:33.960302"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 21:08:33.973484"], ["updated_at", "2016-05-16 21:08:33.973484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:33.977661"], ["updated_at", "2016-05-16 21:08:33.977661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 21:08:33.980387"], ["updated_at", "2016-05-16 21:08:33.980387"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.982594"], ["updated_at", "2016-05-16 21:08:33.982594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:33.984294"], ["updated_at", "2016-05-16 21:08:33.984294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:34.009698"], ["updated_at", "2016-05-16 21:08:34.009698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 21:08:34.014583"], ["updated_at", "2016-05-16 21:08:34.014583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (14.9ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.4ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 21:08:34.086170"], ["updated_at", "2016-05-16 21:08:34.086170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:34.104760"], ["updated_at", "2016-05-16 21:08:34.104760"]]  (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 1 [["slug", "winterfell-news-11"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 21:08:34.108601"], ["updated_at", "2016-05-16 21:08:34.108601"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:34.111389"], ["updated_at", "2016-05-16 21:08:34.111389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 21:08:34.133942"], ["updated_at", "2016-05-16 21:08:34.133942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 21:08:34.136944"], ["updated_at", "2016-05-16 21:08:34.136944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 21:08:34.141044"], ["updated_at", "2016-05-16 21:08:34.141044"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:34.143472"], ["updated_at", "2016-05-16 21:08:34.143472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 21:08:34.145537"], ["updated_at", "2016-05-16 21:08:34.145537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 21:08:34.148757"], ["updated_at", "2016-05-16 21:08:34.148757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) 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.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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.8ms) 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';  (0.9ms) 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.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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:40:40.367474"], ["updated_at", "2016-05-16 23:40:40.367474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (9.0ms) Completed 200 OK in 49ms (Views: 19.3ms | ActiveRecord: 1.1ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:40:40.436487"], ["updated_at", "2016-05-16 23:40:40.436487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (15.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (26.3ms) Completed 200 OK in 30ms (Views: 29.1ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:40:40.476791"], ["updated_at", "2016-05-16 23:40:40.476791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.4ms) Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:40:40.497513"], ["updated_at", "2016-05-16 23:40:40.497513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:40:40.516050"], ["updated_at", "2016-05-16 23:40:40.516050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (9.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (11.8ms) Completed 200 OK in 33ms (Views: 16.5ms | ActiveRecord: 1.3ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:40:40.568385"], ["updated_at", "2016-05-16 23:40:40.568385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (3.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (14.9ms) Completed 200 OK in 18ms (Views: 16.8ms | ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:40:40.604920"], ["updated_at", "2016-05-16 23:40:40.604920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:40:40.608890"], ["updated_at", "2016-05-16 23:40:40.608890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.5ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:40:40.629412"], ["updated_at", "2016-05-16 23:40:40.629412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:40:40.687370"], ["updated_at", "2016-05-16 23:40:40.687370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 23:40:40.793820"], ["updated_at", "2016-05-16 23:40:40.793820"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:40.796870"], ["updated_at", "2016-05-16 23:40:40.796870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:40.799045"], ["updated_at", "2016-05-16 23:40:40.799045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 23:40:40.813258"], ["updated_at", "2016-05-16 23:40:40.813258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:40:40.815839"], ["updated_at", "2016-05-16 23:40:40.815839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 23:40:40.819060"], ["updated_at", "2016-05-16 23:40:40.819060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:40:40.821500"], ["updated_at", "2016-05-16 23:40:40.821500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 23:40:40.824729"], ["updated_at", "2016-05-16 23:40:40.824729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:40:40.835014"], ["updated_at", "2016-05-16 23:40:40.835014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:40:40.839914"], ["updated_at", "2016-05-16 23:40:40.839914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:40:40.815839"], ["updated_at", "2016-05-16 23:40:40.815839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:40.848259"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:40:40.821500"], ["updated_at", "2016-05-16 23:40:40.821500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:40.853756"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:40:40.835014"], ["updated_at", "2016-05-16 23:40:40.835014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:40.859081"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:40:40.864121"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:40:40.874651"], ["updated_at", "2016-05-16 23:40:40.874651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 23:40:40.877527"], ["updated_at", "2016-05-16 23:40:40.877527"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:40.879870"], ["updated_at", "2016-05-16 23:40:40.879870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:40.881746"], ["updated_at", "2016-05-16 23:40:40.881746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 23:40:40.885559"], ["updated_at", "2016-05-16 23:40:40.885559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:40:40.887564"], ["updated_at", "2016-05-16 23:40:40.887564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 23:40:40.891948"], ["updated_at", "2016-05-16 23:40:40.891948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:40:40.894981"], ["updated_at", "2016-05-16 23:40:40.894981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 23:40:40.902299"], ["updated_at", "2016-05-16 23:40:40.902299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:40:40.905169"], ["updated_at", "2016-05-16 23:40:40.905169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:40:40.910219"], ["updated_at", "2016-05-16 23:40:40.910219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:40:40.887564"], ["updated_at", "2016-05-16 23:40:40.887564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:40.922580"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:40:40.894981"], ["updated_at", "2016-05-16 23:40:40.894981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:40.933747"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:40:40.905169"], ["updated_at", "2016-05-16 23:40:40.905169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:40.945681"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:40:40.951792"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:40:40.966312"], ["updated_at", "2016-05-16 23:40:40.966312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 23:40:40.980622"], ["updated_at", "2016-05-16 23:40:40.980622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 23:40:40.991773"], ["updated_at", "2016-05-16 23:40:40.991773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 23:40:40.994996"], ["updated_at", "2016-05-16 23:40:40.994996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 23:40:40.996628"], ["updated_at", "2016-05-16 23:40:40.996628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 23:40:40.999524"], ["updated_at", "2016-05-16 23:40:40.999524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 23:40:41.001086"], ["updated_at", "2016-05-16 23:40:41.001086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 23:40:41.006358"], ["updated_at", "2016-05-16 23:40:41.006358"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.008021"], ["updated_at", "2016-05-16 23:40:41.008021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 23:40:41.015187"], ["updated_at", "2016-05-16 23:40:41.015187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 23:40:41.019417"], ["updated_at", "2016-05-16 23:40:41.019417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 23:40:41.025032"], ["updated_at", "2016-05-16 23:40:41.025032"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:40:41.034886"], ["updated_at", "2016-05-16 23:40:41.034886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 23:40:41.038321"], ["updated_at", "2016-05-16 23:40:41.038321"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.040832"], ["updated_at", "2016-05-16 23:40:41.040832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.042507"], ["updated_at", "2016-05-16 23:40:41.042507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 23:40:41.045243"], ["updated_at", "2016-05-16 23:40:41.045243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:40:41.046840"], ["updated_at", "2016-05-16 23:40:41.046840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 23:40:41.049791"], ["updated_at", "2016-05-16 23:40:41.049791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:40:41.051315"], ["updated_at", "2016-05-16 23:40:41.051315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 23:40:41.055100"], ["updated_at", "2016-05-16 23:40:41.055100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:40:41.056994"], ["updated_at", "2016-05-16 23:40:41.056994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:40:41.059380"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:40:41.061016"], ["updated_at", "2016-05-16 23:40:41.061016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b8b37250-2d29-4a7a-8ca2-ddaa42099f67) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:40:41.046840"], ["updated_at", "2016-05-16 23:40:41.046840"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:41.073571"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:40:41.051315"], ["updated_at", "2016-05-16 23:40:41.051315"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:41.078104"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:40:41.056994"], ["updated_at", "2016-05-16 23:40:41.056994"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:41.082408"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:40:41.084923"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b8b37250-2d29-4a7a-8ca2-ddaa42099f67] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.2ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:40:41.096951"], ["updated_at", "2016-05-16 23:40:41.096951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 23:40:41.099640"], ["updated_at", "2016-05-16 23:40:41.099640"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.101489"], ["updated_at", "2016-05-16 23:40:41.101489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.102926"], ["updated_at", "2016-05-16 23:40:41.102926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 23:40:41.106663"], ["updated_at", "2016-05-16 23:40:41.106663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:40:41.108448"], ["updated_at", "2016-05-16 23:40:41.108448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 23:40:41.110987"], ["updated_at", "2016-05-16 23:40:41.110987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:40:41.112405"], ["updated_at", "2016-05-16 23:40:41.112405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 23:40:41.114931"], ["updated_at", "2016-05-16 23:40:41.114931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:40:41.116325"], ["updated_at", "2016-05-16 23:40:41.116325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:40:41.118634"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:40:41.120175"], ["updated_at", "2016-05-16 23:40:41.120175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:40:41.108448"], ["updated_at", "2016-05-16 23:40:41.108448"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:41.128516"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:40:41.112405"], ["updated_at", "2016-05-16 23:40:41.112405"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:41.134061"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:40:41.116325"], ["updated_at", "2016-05-16 23:40:41.116325"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:41.139250"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:40:41.142061"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ae56cbb2-091f-4cbe-bf99-a92ed74f9eeb] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.81ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 23:40:41.149000"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:40:41.150771"], ["updated_at", "2016-05-16 23:40:41.150771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 20ae0b3b-3dd8-4bc8-aba1-eca9239e5043) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:40:41.108448"], ["updated_at", "2016-05-16 23:40:41.108448"]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:40:41.159288"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:40:41.112405"], ["updated_at", "2016-05-16 23:40:41.112405"]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:40:41.163693"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:40:41.116325"], ["updated_at", "2016-05-16 23:40:41.116325"]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:40:41.168248"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:40:41.170527"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20ae0b3b-3dd8-4bc8-aba1-eca9239e5043] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.05ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:40:41.182296"], ["updated_at", "2016-05-16 23:40:41.182296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 23:40:41.184849"], ["updated_at", "2016-05-16 23:40:41.184849"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.186666"], ["updated_at", "2016-05-16 23:40:41.186666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.188901"], ["updated_at", "2016-05-16 23:40:41.188901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 23:40:41.191637"], ["updated_at", "2016-05-16 23:40:41.191637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:40:41.193166"], ["updated_at", "2016-05-16 23:40:41.193166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 23:40:41.195725"], ["updated_at", "2016-05-16 23:40:41.195725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:40:41.197723"], ["updated_at", "2016-05-16 23:40:41.197723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 23:40:41.201830"], ["updated_at", "2016-05-16 23:40:41.201830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:40:41.203726"], ["updated_at", "2016-05-16 23:40:41.203726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:40:41.206313"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:40:41.208026"], ["updated_at", "2016-05-16 23:40:41.208026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 46aef3b4-9b33-44cb-970f-93df250322bc) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:40:41.193166"], ["updated_at", "2016-05-16 23:40:41.193166"]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:41.217489"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:40:41.197723"], ["updated_at", "2016-05-16 23:40:41.197723"]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:41.223729"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:40:41.203726"], ["updated_at", "2016-05-16 23:40:41.203726"]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:40:41.231266"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:40:41.235396"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aef3b4-9b33-44cb-970f-93df250322bc] Performed Pulitzer::CloneVersionJob from Inline(default) in 30.03ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 23:40:41.243883"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 23:40:41.257706"], ["updated_at", "2016-05-16 23:40:41.257706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 23:40:41.269795"], ["updated_at", "2016-05-16 23:40:41.269795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 23:40:41.275356"], ["updated_at", "2016-05-16 23:40:41.275356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 23:40:41.281706"], ["updated_at", "2016-05-16 23:40:41.281706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 23:40:41.289412"], ["updated_at", "2016-05-16 23:40:41.289412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:40:41.292674"], ["updated_at", "2016-05-16 23:40:41.292674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 23:40:41.300342"], ["updated_at", "2016-05-16 23:40:41.300342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:40:41.302845"], ["updated_at", "2016-05-16 23:40:41.302845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 23:40:41.310214"], ["updated_at", "2016-05-16 23:40:41.310214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 23:40:41.316095"], ["updated_at", "2016-05-16 23:40:41.316095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 23:40:41.322248"], ["updated_at", "2016-05-16 23:40:41.322248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:40:41.501743"], ["updated_at", "2016-05-16 23:40:41.501743"]]  (0.1ms) RELEASE 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 1 [["slug", "winterfell-news-7"]]  (0.9ms) rollback transaction  (0.4ms) begin transaction  (0.2ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:40:41.521481"], ["updated_at", "2016-05-16 23:40:41.521481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 23:40:41.525377"], ["updated_at", "2016-05-16 23:40:41.525377"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.527532"], ["updated_at", "2016-05-16 23:40:41.527532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:40:41.532309"], ["updated_at", "2016-05-16 23:40:41.532309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 23:40:41.536038"], ["updated_at", "2016-05-16 23:40:41.536038"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.539854"], ["updated_at", "2016-05-16 23:40:41.539854"]]  (0.1ms) 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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 23:40:41.542790"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 23:40:41.553734"], ["updated_at", "2016-05-16 23:40:41.553734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:40:41.558179"], ["updated_at", "2016-05-16 23:40:41.558179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 23:40:41.561243"], ["updated_at", "2016-05-16 23:40:41.561243"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.562949"], ["updated_at", "2016-05-16 23:40:41.562949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.564425"], ["updated_at", "2016-05-16 23:40:41.564425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:40:41.588965"], ["updated_at", "2016-05-16 23:40:41.588965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 23:40:41.592161"], ["updated_at", "2016-05-16 23:40:41.592161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 23:40:41.645662"], ["updated_at", "2016-05-16 23:40:41.645662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:40:41.664544"], ["updated_at", "2016-05-16 23:40:41.664544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 23:40:41.667969"], ["updated_at", "2016-05-16 23:40:41.667969"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.670122"], ["updated_at", "2016-05-16 23:40:41.670122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 23:40:41.690796"], ["updated_at", "2016-05-16 23:40:41.690796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:40:41.693244"], ["updated_at", "2016-05-16 23:40:41.693244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 23:40:41.695872"], ["updated_at", "2016-05-16 23:40:41.695872"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.697625"], ["updated_at", "2016-05-16 23:40:41.697625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:40:41.699864"], ["updated_at", "2016-05-16 23:40:41.699864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 23:40:41.702594"], ["updated_at", "2016-05-16 23:40:41.702594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.0ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts';  (1.1ms) DELETE FROM "pulitzer_tags";  (0.2ms) 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.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 "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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.8ms) 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.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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:42:19.616996"], ["updated_at", "2016-05-16 23:42:19.616996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (8.1ms) Completed 200 OK in 45ms (Views: 17.9ms | ActiveRecord: 1.0ms) Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:42:19.679320"], ["updated_at", "2016-05-16 23:42:19.679320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (10.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (19.8ms) Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:42:19.712209"], ["updated_at", "2016-05-16 23:42:19.712209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.5ms) Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:42:19.734484"], ["updated_at", "2016-05-16 23:42:19.734484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (2.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (9.6ms) Completed 200 OK in 22ms (Views: 13.6ms | ActiveRecord: 0.4ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:42:19.784666"], ["updated_at", "2016-05-16 23:42:19.784666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:42:19.811859"], ["updated_at", "2016-05-16 23:42:19.811859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (7.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (9.7ms) Completed 200 OK in 23ms (Views: 11.8ms | ActiveRecord: 1.0ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:42:19.846592"], ["updated_at", "2016-05-16 23:42:19.846592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (13.4ms) Completed 200 OK in 16ms (Views: 15.1ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:42:19.873783"], ["updated_at", "2016-05-16 23:42:19.873783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:42:19.877617"], ["updated_at", "2016-05-16 23:42:19.877617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.6ms) Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.4ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:42:19.905012"], ["updated_at", "2016-05-16 23:42:19.905012"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 23:42:20.019838"], ["updated_at", "2016-05-16 23:42:20.019838"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.023237"], ["updated_at", "2016-05-16 23:42:20.023237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.026320"], ["updated_at", "2016-05-16 23:42:20.026320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 23:42:20.051312"], ["updated_at", "2016-05-16 23:42:20.051312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.054105"], ["updated_at", "2016-05-16 23:42:20.054105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 23:42:20.058109"], ["updated_at", "2016-05-16 23:42:20.058109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.060800"], ["updated_at", "2016-05-16 23:42:20.060800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 23:42:20.064467"], ["updated_at", "2016-05-16 23:42:20.064467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.066359"], ["updated_at", "2016-05-16 23:42:20.066359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:42:20.070892"], ["updated_at", "2016-05-16 23:42:20.070892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:42:20.054105"], ["updated_at", "2016-05-16 23:42:20.054105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.079727"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:42:20.060800"], ["updated_at", "2016-05-16 23:42:20.060800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.085108"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:42:20.066359"], ["updated_at", "2016-05-16 23:42:20.066359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.090401"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.2ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:42:20.100264"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:42:20.114583"], ["updated_at", "2016-05-16 23:42:20.114583"]]  (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 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 23:42:20.119575"], ["updated_at", "2016-05-16 23:42:20.119575"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.123407"], ["updated_at", "2016-05-16 23:42:20.123407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.127390"], ["updated_at", "2016-05-16 23:42:20.127390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 23:42:20.134689"], ["updated_at", "2016-05-16 23:42:20.134689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.138184"], ["updated_at", "2016-05-16 23:42:20.138184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 23:42:20.145430"], ["updated_at", "2016-05-16 23:42:20.145430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.149530"], ["updated_at", "2016-05-16 23:42:20.149530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 23:42:20.156852"], ["updated_at", "2016-05-16 23:42:20.156852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.162791"], ["updated_at", "2016-05-16 23:42:20.162791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:42:20.166210"], ["updated_at", "2016-05-16 23:42:20.166210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:42:20.138184"], ["updated_at", "2016-05-16 23:42:20.138184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.179060"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:42:20.149530"], ["updated_at", "2016-05-16 23:42:20.149530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.187656"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:42:20.162791"], ["updated_at", "2016-05-16 23:42:20.162791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.200330"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:42:20.203087"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:42:20.214445"], ["updated_at", "2016-05-16 23:42:20.214445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 23:42:20.221718"], ["updated_at", "2016-05-16 23:42:20.221718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 23:42:20.224323"], ["updated_at", "2016-05-16 23:42:20.224323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 23:42:20.226886"], ["updated_at", "2016-05-16 23:42:20.226886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 23:42:20.228203"], ["updated_at", "2016-05-16 23:42:20.228203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 23:42:20.230510"], ["updated_at", "2016-05-16 23:42:20.230510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 23:42:20.231988"], ["updated_at", "2016-05-16 23:42:20.231988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 23:42:20.236127"], ["updated_at", "2016-05-16 23:42:20.236127"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.237773"], ["updated_at", "2016-05-16 23:42:20.237773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 23:42:20.244799"], ["updated_at", "2016-05-16 23:42:20.244799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 23:42:20.250570"], ["updated_at", "2016-05-16 23:42:20.250570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 23:42:20.254595"], ["updated_at", "2016-05-16 23:42:20.254595"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:42:20.263358"], ["updated_at", "2016-05-16 23:42:20.263358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 23:42:20.265926"], ["updated_at", "2016-05-16 23:42:20.265926"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.267786"], ["updated_at", "2016-05-16 23:42:20.267786"]]  (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", "2016-05-16 23:42:20.269480"], ["updated_at", "2016-05-16 23:42:20.269480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 23:42:20.272750"], ["updated_at", "2016-05-16 23:42:20.272750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.274479"], ["updated_at", "2016-05-16 23:42:20.274479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 23:42:20.277031"], ["updated_at", "2016-05-16 23:42:20.277031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.278994"], ["updated_at", "2016-05-16 23:42:20.278994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 23:42:20.281767"], ["updated_at", "2016-05-16 23:42:20.281767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.283594"], ["updated_at", "2016-05-16 23:42:20.283594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:42:20.286232"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:42:20.287913"], ["updated_at", "2016-05-16 23:42:20.287913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 78b0c021-ef40-4e3d-ae83-a36930fd6d65) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:42:20.274479"], ["updated_at", "2016-05-16 23:42:20.274479"]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.300103"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:42:20.278994"], ["updated_at", "2016-05-16 23:42:20.278994"]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.304513"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:42:20.283594"], ["updated_at", "2016-05-16 23:42:20.283594"]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.308956"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:42:20.311202"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78b0c021-ef40-4e3d-ae83-a36930fd6d65] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.81ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:42:20.323843"], ["updated_at", "2016-05-16 23:42:20.323843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 23:42:20.326860"], ["updated_at", "2016-05-16 23:42:20.326860"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.329249"], ["updated_at", "2016-05-16 23:42:20.329249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.331267"], ["updated_at", "2016-05-16 23:42:20.331267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 23:42:20.334006"], ["updated_at", "2016-05-16 23:42:20.334006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.335526"], ["updated_at", "2016-05-16 23:42:20.335526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 23:42:20.338087"], ["updated_at", "2016-05-16 23:42:20.338087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.339535"], ["updated_at", "2016-05-16 23:42:20.339535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 23:42:20.342395"], ["updated_at", "2016-05-16 23:42:20.342395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.343827"], ["updated_at", "2016-05-16 23:42:20.343827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:42:20.347558"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:42:20.349502"], ["updated_at", "2016-05-16 23:42:20.349502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 845a7930-8c73-44ea-97f9-3ca6e2eef459) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:42:20.335526"], ["updated_at", "2016-05-16 23:42:20.335526"]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.359263"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:42:20.339535"], ["updated_at", "2016-05-16 23:42:20.339535"]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.365315"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:42:20.343827"], ["updated_at", "2016-05-16 23:42:20.343827"]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.369735"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:42:20.371966"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [845a7930-8c73-44ea-97f9-3ca6e2eef459] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.43ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 23:42:20.378732"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:42:20.380452"], ["updated_at", "2016-05-16 23:42:20.380452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c230551c-b3d7-4c18-8266-52db4e244749) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:42:20.335526"], ["updated_at", "2016-05-16 23:42:20.335526"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:42:20.389121"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:42:20.339535"], ["updated_at", "2016-05-16 23:42:20.339535"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:42:20.393558"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:42:20.343827"], ["updated_at", "2016-05-16 23:42:20.343827"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:42:20.398828"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:42:20.401597"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c230551c-b3d7-4c18-8266-52db4e244749] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.61ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:42:20.415019"], ["updated_at", "2016-05-16 23:42:20.415019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 23:42:20.421274"], ["updated_at", "2016-05-16 23:42:20.421274"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.425141"], ["updated_at", "2016-05-16 23:42:20.425141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.428185"], ["updated_at", "2016-05-16 23:42:20.428185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 23:42:20.436091"], ["updated_at", "2016-05-16 23:42:20.436091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.439248"], ["updated_at", "2016-05-16 23:42:20.439248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 23:42:20.442666"], ["updated_at", "2016-05-16 23:42:20.442666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.444327"], ["updated_at", "2016-05-16 23:42:20.444327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 23:42:20.448812"], ["updated_at", "2016-05-16 23:42:20.448812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.450924"], ["updated_at", "2016-05-16 23:42:20.450924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:42:20.453257"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:42:20.454718"], ["updated_at", "2016-05-16 23:42:20.454718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ea638580-9503-46d9-b528-3f6c18f52634) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:42:20.439248"], ["updated_at", "2016-05-16 23:42:20.439248"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.463946"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:42:20.444327"], ["updated_at", "2016-05-16 23:42:20.444327"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.468648"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:42:20.450924"], ["updated_at", "2016-05-16 23:42:20.450924"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:42:20.473024"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:42:20.475356"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea638580-9503-46d9-b528-3f6c18f52634] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.82ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 23:42:20.481361"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 23:42:20.491941"], ["updated_at", "2016-05-16 23:42:20.491941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 23:42:20.503035"], ["updated_at", "2016-05-16 23:42:20.503035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 23:42:20.507945"], ["updated_at", "2016-05-16 23:42:20.507945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 23:42:20.515294"], ["updated_at", "2016-05-16 23:42:20.515294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 23:42:20.520992"], ["updated_at", "2016-05-16 23:42:20.520992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:42:20.523148"], ["updated_at", "2016-05-16 23:42:20.523148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 23:42:20.531218"], ["updated_at", "2016-05-16 23:42:20.531218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:42:20.533178"], ["updated_at", "2016-05-16 23:42:20.533178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 23:42:20.539267"], ["updated_at", "2016-05-16 23:42:20.539267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 23:42:20.544855"], ["updated_at", "2016-05-16 23:42:20.544855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 23:42:20.550525"], ["updated_at", "2016-05-16 23:42:20.550525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:42:20.689838"], ["updated_at", "2016-05-16 23:42:20.689838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:42:20.703468"], ["updated_at", "2016-05-16 23:42:20.703468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 23:42:20.706935"], ["updated_at", "2016-05-16 23:42:20.706935"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.709662"], ["updated_at", "2016-05-16 23:42:20.709662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:42:20.714287"], ["updated_at", "2016-05-16 23:42:20.714287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 23:42:20.717254"], ["updated_at", "2016-05-16 23:42:20.717254"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.719735"], ["updated_at", "2016-05-16 23:42:20.719735"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 23:42:20.723985"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 23:42:20.743743"], ["updated_at", "2016-05-16 23:42:20.743743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:42:20.750037"], ["updated_at", "2016-05-16 23:42:20.750037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 23:42:20.752964"], ["updated_at", "2016-05-16 23:42:20.752964"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.754565"], ["updated_at", "2016-05-16 23:42:20.754565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.756435"], ["updated_at", "2016-05-16 23:42:20.756435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:42:20.778657"], ["updated_at", "2016-05-16 23:42:20.778657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 23:42:20.785443"], ["updated_at", "2016-05-16 23:42:20.785443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 23:42:20.827288"], ["updated_at", "2016-05-16 23:42:20.827288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:42:20.842036"], ["updated_at", "2016-05-16 23:42:20.842036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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 1 [["slug", "winterfell-news-11"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 23:42:20.846220"], ["updated_at", "2016-05-16 23:42:20.846220"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.848599"], ["updated_at", "2016-05-16 23:42:20.848599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 23:42:20.870903"], ["updated_at", "2016-05-16 23:42:20.870903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:42:20.873315"], ["updated_at", "2016-05-16 23:42:20.873315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 23:42:20.876353"], ["updated_at", "2016-05-16 23:42:20.876353"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.877903"], ["updated_at", "2016-05-16 23:42:20.877903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:42:20.880552"], ["updated_at", "2016-05-16 23:42:20.880552"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 23:42:20.887752"], ["updated_at", "2016-05-16 23:42:20.887752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.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';  (0.7ms) 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 "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.8ms) 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';  (0.7ms) 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';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:43:05.773434"], ["updated_at", "2016-05-16 23:43:05.773434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (8.8ms) Completed 200 OK in 45ms (Views: 18.6ms | ActiveRecord: 1.1ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:43:05.835300"], ["updated_at", "2016-05-16 23:43:05.835300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (13.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (22.4ms) Completed 200 OK in 25ms (Views: 24.4ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:43:05.872095"], ["updated_at", "2016-05-16 23:43:05.872095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.5ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:43:05.893765"], ["updated_at", "2016-05-16 23:43:05.893765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:43:05.911923"], ["updated_at", "2016-05-16 23:43:05.911923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (2.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (8.9ms) Completed 200 OK in 20ms (Views: 12.6ms | ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:43:05.947122"], ["updated_at", "2016-05-16 23:43:05.947122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::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::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (14.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (16.1ms) Completed 200 OK in 28ms (Views: 17.5ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:43:05.987151"], ["updated_at", "2016-05-16 23:43:05.987151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (12.4ms) Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:43:06.013941"], ["updated_at", "2016-05-16 23:43:06.013941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:43:06.017992"], ["updated_at", "2016-05-16 23:43:06.017992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (0.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.2ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:43:06.046037"], ["updated_at", "2016-05-16 23:43:06.046037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 23:43:06.156288"], ["updated_at", "2016-05-16 23:43:06.156288"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.159439"], ["updated_at", "2016-05-16 23:43:06.159439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.161791"], ["updated_at", "2016-05-16 23:43:06.161791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 23:43:06.174345"], ["updated_at", "2016-05-16 23:43:06.174345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.177387"], ["updated_at", "2016-05-16 23:43:06.177387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 23:43:06.180837"], ["updated_at", "2016-05-16 23:43:06.180837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.182534"], ["updated_at", "2016-05-16 23:43:06.182534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 23:43:06.185206"], ["updated_at", "2016-05-16 23:43:06.185206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.196921"], ["updated_at", "2016-05-16 23:43:06.196921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:43:06.201133"], ["updated_at", "2016-05-16 23:43:06.201133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:43:06.177387"], ["updated_at", "2016-05-16 23:43:06.177387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.209943"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:43:06.182534"], ["updated_at", "2016-05-16 23:43:06.182534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.215638"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:43:06.196921"], ["updated_at", "2016-05-16 23:43:06.196921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.220673"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:43:06.226255"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:43:06.237964"], ["updated_at", "2016-05-16 23:43:06.237964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 23:43:06.241164"], ["updated_at", "2016-05-16 23:43:06.241164"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.244185"], ["updated_at", "2016-05-16 23:43:06.244185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.246029"], ["updated_at", "2016-05-16 23:43:06.246029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 23:43:06.249177"], ["updated_at", "2016-05-16 23:43:06.249177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.250917"], ["updated_at", "2016-05-16 23:43:06.250917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 23:43:06.257919"], ["updated_at", "2016-05-16 23:43:06.257919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.261682"], ["updated_at", "2016-05-16 23:43:06.261682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 23:43:06.268192"], ["updated_at", "2016-05-16 23:43:06.268192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.272453"], ["updated_at", "2016-05-16 23:43:06.272453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:43:06.276551"], ["updated_at", "2016-05-16 23:43:06.276551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:43:06.250917"], ["updated_at", "2016-05-16 23:43:06.250917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.288791"], ["id", 4]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:43:06.261682"], ["updated_at", "2016-05-16 23:43:06.261682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.300124"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (1.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:43:06.272453"], ["updated_at", "2016-05-16 23:43:06.272453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.311844"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:43:06.315769"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:43:06.331341"], ["updated_at", "2016-05-16 23:43:06.331341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 23:43:06.351646"], ["updated_at", "2016-05-16 23:43:06.351646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 23:43:06.354302"], ["updated_at", "2016-05-16 23:43:06.354302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 23:43:06.356765"], ["updated_at", "2016-05-16 23:43:06.356765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 23:43:06.358025"], ["updated_at", "2016-05-16 23:43:06.358025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 23:43:06.360576"], ["updated_at", "2016-05-16 23:43:06.360576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 23:43:06.361907"], ["updated_at", "2016-05-16 23:43:06.361907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 23:43:06.366821"], ["updated_at", "2016-05-16 23:43:06.366821"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.368424"], ["updated_at", "2016-05-16 23:43:06.368424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 23:43:06.376327"], ["updated_at", "2016-05-16 23:43:06.376327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 23:43:06.380793"], ["updated_at", "2016-05-16 23:43:06.380793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 23:43:06.384762"], ["updated_at", "2016-05-16 23:43:06.384762"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:43:06.392810"], ["updated_at", "2016-05-16 23:43:06.392810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 23:43:06.395436"], ["updated_at", "2016-05-16 23:43:06.395436"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.397381"], ["updated_at", "2016-05-16 23:43:06.397381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.398944"], ["updated_at", "2016-05-16 23:43:06.398944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 23:43:06.402058"], ["updated_at", "2016-05-16 23:43:06.402058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.403771"], ["updated_at", "2016-05-16 23:43:06.403771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 23:43:06.406317"], ["updated_at", "2016-05-16 23:43:06.406317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.408082"], ["updated_at", "2016-05-16 23:43:06.408082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 23:43:06.411612"], ["updated_at", "2016-05-16 23:43:06.411612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.413169"], ["updated_at", "2016-05-16 23:43:06.413169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:43:06.415384"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:43:06.416835"], ["updated_at", "2016-05-16 23:43:06.416835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b59a1217-e1cd-4682-9987-c07b84897519) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:43:06.403771"], ["updated_at", "2016-05-16 23:43:06.403771"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.428441"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:43:06.408082"], ["updated_at", "2016-05-16 23:43:06.408082"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.432820"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:43:06.413169"], ["updated_at", "2016-05-16 23:43:06.413169"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.437854"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:43:06.440524"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b59a1217-e1cd-4682-9987-c07b84897519] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.75ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:43:06.454127"], ["updated_at", "2016-05-16 23:43:06.454127"]]  (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 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 23:43:06.457145"], ["updated_at", "2016-05-16 23:43:06.457145"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.459473"], ["updated_at", "2016-05-16 23:43:06.459473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.461395"], ["updated_at", "2016-05-16 23:43:06.461395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 23:43:06.464043"], ["updated_at", "2016-05-16 23:43:06.464043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.465614"], ["updated_at", "2016-05-16 23:43:06.465614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 23:43:06.468292"], ["updated_at", "2016-05-16 23:43:06.468292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.470351"], ["updated_at", "2016-05-16 23:43:06.470351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 23:43:06.473601"], ["updated_at", "2016-05-16 23:43:06.473601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.475039"], ["updated_at", "2016-05-16 23:43:06.475039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:43:06.477794"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:43:06.479270"], ["updated_at", "2016-05-16 23:43:06.479270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 96392774-7544-4681-bc0e-89c89a748ea3) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:43:06.465614"], ["updated_at", "2016-05-16 23:43:06.465614"]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.488368"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:43:06.470351"], ["updated_at", "2016-05-16 23:43:06.470351"]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.494127"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:43:06.475039"], ["updated_at", "2016-05-16 23:43:06.475039"]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.498650"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:43:06.501046"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96392774-7544-4681-bc0e-89c89a748ea3] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.23ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 23:43:06.508336"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:43:06.510536"], ["updated_at", "2016-05-16 23:43:06.510536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 12afa4ac-da2c-4e7e-b24d-fbf4e844ece7) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:43:06.465614"], ["updated_at", "2016-05-16 23:43:06.465614"]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:43:06.519174"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:43:06.470351"], ["updated_at", "2016-05-16 23:43:06.470351"]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:43:06.523637"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:43:06.475039"], ["updated_at", "2016-05-16 23:43:06.475039"]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:43:06.528386"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:43:06.530563"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [12afa4ac-da2c-4e7e-b24d-fbf4e844ece7] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.21ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:43:06.542227"], ["updated_at", "2016-05-16 23:43:06.542227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 23:43:06.545263"], ["updated_at", "2016-05-16 23:43:06.545263"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.547137"], ["updated_at", "2016-05-16 23:43:06.547137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.548981"], ["updated_at", "2016-05-16 23:43:06.548981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 23:43:06.551961"], ["updated_at", "2016-05-16 23:43:06.551961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.553511"], ["updated_at", "2016-05-16 23:43:06.553511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 23:43:06.556074"], ["updated_at", "2016-05-16 23:43:06.556074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.557514"], ["updated_at", "2016-05-16 23:43:06.557514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 23:43:06.561662"], ["updated_at", "2016-05-16 23:43:06.561662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.563474"], ["updated_at", "2016-05-16 23:43:06.563474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:43:06.566156"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:43:06.567761"], ["updated_at", "2016-05-16 23:43:06.567761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 9a232834-b2b0-4a87-b4fa-09cea1eff895) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:43:06.553511"], ["updated_at", "2016-05-16 23:43:06.553511"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.577020"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:43:06.557514"], ["updated_at", "2016-05-16 23:43:06.557514"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.581771"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:43:06.563474"], ["updated_at", "2016-05-16 23:43:06.563474"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:43:06.586401"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:43:06.588674"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9a232834-b2b0-4a87-b4fa-09cea1eff895] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.06ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 23:43:06.595541"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 23:43:06.608529"], ["updated_at", "2016-05-16 23:43:06.608529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 23:43:06.619794"], ["updated_at", "2016-05-16 23:43:06.619794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 23:43:06.624642"], ["updated_at", "2016-05-16 23:43:06.624642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 23:43:06.629785"], ["updated_at", "2016-05-16 23:43:06.629785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 23:43:06.635214"], ["updated_at", "2016-05-16 23:43:06.635214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:43:06.636844"], ["updated_at", "2016-05-16 23:43:06.636844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 23:43:06.643863"], ["updated_at", "2016-05-16 23:43:06.643863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:43:06.645676"], ["updated_at", "2016-05-16 23:43:06.645676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 23:43:06.650918"], ["updated_at", "2016-05-16 23:43:06.650918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 23:43:06.656259"], ["updated_at", "2016-05-16 23:43:06.656259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 23:43:06.661978"], ["updated_at", "2016-05-16 23:43:06.661978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:43:06.799988"], ["updated_at", "2016-05-16 23:43:06.799988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:43:06.816372"], ["updated_at", "2016-05-16 23:43:06.816372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 23:43:06.819263"], ["updated_at", "2016-05-16 23:43:06.819263"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.821444"], ["updated_at", "2016-05-16 23:43:06.821444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:43:06.825617"], ["updated_at", "2016-05-16 23:43:06.825617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 23:43:06.834633"], ["updated_at", "2016-05-16 23:43:06.834633"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.837579"], ["updated_at", "2016-05-16 23:43:06.837579"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 23:43:06.840361"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 23:43:06.852009"], ["updated_at", "2016-05-16 23:43:06.852009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:43:06.856005"], ["updated_at", "2016-05-16 23:43:06.856005"]]  (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 1 [["slug", "winterfell-news-10"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 23:43:06.859295"], ["updated_at", "2016-05-16 23:43:06.859295"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.862282"], ["updated_at", "2016-05-16 23:43:06.862282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.864250"], ["updated_at", "2016-05-16 23:43:06.864250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:43:06.887675"], ["updated_at", "2016-05-16 23:43:06.887675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 23:43:06.890809"], ["updated_at", "2016-05-16 23:43:06.890809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 23:43:06.939470"], ["updated_at", "2016-05-16 23:43:06.939470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:43:06.958202"], ["updated_at", "2016-05-16 23:43:06.958202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 23:43:06.963579"], ["updated_at", "2016-05-16 23:43:06.963579"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.965923"], ["updated_at", "2016-05-16 23:43:06.965923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 23:43:06.983819"], ["updated_at", "2016-05-16 23:43:06.983819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:43:06.986360"], ["updated_at", "2016-05-16 23:43:06.986360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 23:43:06.989567"], ["updated_at", "2016-05-16 23:43:06.989567"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.991789"], ["updated_at", "2016-05-16 23:43:06.991789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:43:06.995339"], ["updated_at", "2016-05-16 23:43:06.995339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 23:43:06.997752"], ["updated_at", "2016-05-16 23:43:06.997752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.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';  (0.7ms) 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.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:52:55.631077"], ["updated_at", "2016-05-16 23:52:55.631077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (23.6ms) Completed 200 OK in 50ms (Views: 32.0ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:52:55.704494"], ["updated_at", "2016-05-16 23:52:55.704494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.8ms) Completed 200 OK in 15ms (Views: 9.4ms | ActiveRecord: 0.8ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:52:55.728973"], ["updated_at", "2016-05-16 23:52:55.728973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (7.6ms) Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.1ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:52:55.751230"], ["updated_at", "2016-05-16 23:52:55.751230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.2ms) Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:52:55.771354"], ["updated_at", "2016-05-16 23:52:55.771354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:52:55.789076"], ["updated_at", "2016-05-16 23:52:55.789076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (2.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (9.1ms) Completed 200 OK in 27ms (Views: 12.6ms | ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:52:55.831359"], ["updated_at", "2016-05-16 23:52:55.831359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (2.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (7.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (9.3ms) Completed 200 OK in 22ms (Views: 10.8ms | ActiveRecord: 1.0ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:52:55.866437"], ["updated_at", "2016-05-16 23:52:55.866437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (11.5ms) Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:52:55.892666"], ["updated_at", "2016-05-16 23:52:55.892666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:52:55.896345"], ["updated_at", "2016-05-16 23:52:55.896345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.5ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:52:55.925867"], ["updated_at", "2016-05-16 23:52:55.925867"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 23:52:56.037742"], ["updated_at", "2016-05-16 23:52:56.037742"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.041044"], ["updated_at", "2016-05-16 23:52:56.041044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.043349"], ["updated_at", "2016-05-16 23:52:56.043349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 23:52:56.066745"], ["updated_at", "2016-05-16 23:52:56.066745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.069463"], ["updated_at", "2016-05-16 23:52:56.069463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 23:52:56.072772"], ["updated_at", "2016-05-16 23:52:56.072772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.074354"], ["updated_at", "2016-05-16 23:52:56.074354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 23:52:56.077317"], ["updated_at", "2016-05-16 23:52:56.077317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.078963"], ["updated_at", "2016-05-16 23:52:56.078963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:52:56.082986"], ["updated_at", "2016-05-16 23:52:56.082986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:52:56.069463"], ["updated_at", "2016-05-16 23:52:56.069463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.091434"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:52:56.074354"], ["updated_at", "2016-05-16 23:52:56.074354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.097235"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:52:56.078963"], ["updated_at", "2016-05-16 23:52:56.078963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.108187"], ["id", 6]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:52:56.116910"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:52:56.134397"], ["updated_at", "2016-05-16 23:52:56.134397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.9ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 23:52:56.140878"], ["updated_at", "2016-05-16 23:52:56.140878"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.144314"], ["updated_at", "2016-05-16 23:52:56.144314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.147630"], ["updated_at", "2016-05-16 23:52:56.147630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (1.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 23:52:56.155138"], ["updated_at", "2016-05-16 23:52:56.155138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.159227"], ["updated_at", "2016-05-16 23:52:56.159227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 23:52:56.167121"], ["updated_at", "2016-05-16 23:52:56.167121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.170045"], ["updated_at", "2016-05-16 23:52:56.170045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 23:52:56.175159"], ["updated_at", "2016-05-16 23:52:56.175159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.178498"], ["updated_at", "2016-05-16 23:52:56.178498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:52:56.181718"], ["updated_at", "2016-05-16 23:52:56.181718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:52:56.159227"], ["updated_at", "2016-05-16 23:52:56.159227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.201552"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:52:56.170045"], ["updated_at", "2016-05-16 23:52:56.170045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.206450"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:52:56.178498"], ["updated_at", "2016-05-16 23:52:56.178498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.210847"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:52:56.213083"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:52:56.222925"], ["updated_at", "2016-05-16 23:52:56.222925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 23:52:56.228973"], ["updated_at", "2016-05-16 23:52:56.228973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 23:52:56.231789"], ["updated_at", "2016-05-16 23:52:56.231789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 23:52:56.234153"], ["updated_at", "2016-05-16 23:52:56.234153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 23:52:56.235425"], ["updated_at", "2016-05-16 23:52:56.235425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 23:52:56.238383"], ["updated_at", "2016-05-16 23:52:56.238383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 23:52:56.239731"], ["updated_at", "2016-05-16 23:52:56.239731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 23:52:56.243974"], ["updated_at", "2016-05-16 23:52:56.243974"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.245549"], ["updated_at", "2016-05-16 23:52:56.245549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (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 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 23:52:56.253439"], ["updated_at", "2016-05-16 23:52:56.253439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 23:52:56.258544"], ["updated_at", "2016-05-16 23:52:56.258544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 23:52:56.262609"], ["updated_at", "2016-05-16 23:52:56.262609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSectionType Load (0.3ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:52:56.271608"], ["updated_at", "2016-05-16 23:52:56.271608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 23:52:56.274119"], ["updated_at", "2016-05-16 23:52:56.274119"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.276194"], ["updated_at", "2016-05-16 23:52:56.276194"]]  (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", "2016-05-16 23:52:56.278221"], ["updated_at", "2016-05-16 23:52:56.278221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 23:52:56.281074"], ["updated_at", "2016-05-16 23:52:56.281074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.282782"], ["updated_at", "2016-05-16 23:52:56.282782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 23:52:56.285874"], ["updated_at", "2016-05-16 23:52:56.285874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.288055"], ["updated_at", "2016-05-16 23:52:56.288055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 23:52:56.291296"], ["updated_at", "2016-05-16 23:52:56.291296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.292819"], ["updated_at", "2016-05-16 23:52:56.292819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:52:56.295026"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:52:56.296467"], ["updated_at", "2016-05-16 23:52:56.296467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b2995563-545f-4dac-8c96-3cafd79ea0d1) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:52:56.282782"], ["updated_at", "2016-05-16 23:52:56.282782"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.308411"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:52:56.288055"], ["updated_at", "2016-05-16 23:52:56.288055"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.314316"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:52:56.292819"], ["updated_at", "2016-05-16 23:52:56.292819"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.319871"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:52:56.323475"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b2995563-545f-4dac-8c96-3cafd79ea0d1] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.09ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:52:56.336510"], ["updated_at", "2016-05-16 23:52:56.336510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 23:52:56.339423"], ["updated_at", "2016-05-16 23:52:56.339423"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.342073"], ["updated_at", "2016-05-16 23:52:56.342073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.343850"], ["updated_at", "2016-05-16 23:52:56.343850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 23:52:56.347304"], ["updated_at", "2016-05-16 23:52:56.347304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.348863"], ["updated_at", "2016-05-16 23:52:56.348863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 23:52:56.351492"], ["updated_at", "2016-05-16 23:52:56.351492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.353381"], ["updated_at", "2016-05-16 23:52:56.353381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 23:52:56.356203"], ["updated_at", "2016-05-16 23:52:56.356203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.358067"], ["updated_at", "2016-05-16 23:52:56.358067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:52:56.360702"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:52:56.362390"], ["updated_at", "2016-05-16 23:52:56.362390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 3e18e07a-56d0-4241-b7df-68b5242d16a9) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:52:56.348863"], ["updated_at", "2016-05-16 23:52:56.348863"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.371773"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:52:56.353381"], ["updated_at", "2016-05-16 23:52:56.353381"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.376154"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:52:56.358067"], ["updated_at", "2016-05-16 23:52:56.358067"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.381493"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:52:56.384229"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e18e07a-56d0-4241-b7df-68b5242d16a9] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.05ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 23:52:56.392221"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:52:56.393931"], ["updated_at", "2016-05-16 23:52:56.393931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: dcd49a8a-20b9-4043-b952-942d22228a7f) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:52:56.348863"], ["updated_at", "2016-05-16 23:52:56.348863"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:52:56.401571"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:52:56.353381"], ["updated_at", "2016-05-16 23:52:56.353381"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:52:56.407525"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:52:56.358067"], ["updated_at", "2016-05-16 23:52:56.358067"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:52:56.413082"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:52:56.415900"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcd49a8a-20b9-4043-b952-942d22228a7f] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.7ms Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:52:56.429720"], ["updated_at", "2016-05-16 23:52:56.429720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 23:52:56.432597"], ["updated_at", "2016-05-16 23:52:56.432597"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.434580"], ["updated_at", "2016-05-16 23:52:56.434580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.436715"], ["updated_at", "2016-05-16 23:52:56.436715"]]  (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" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 23:52:56.440363"], ["updated_at", "2016-05-16 23:52:56.440363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.442068"], ["updated_at", "2016-05-16 23:52:56.442068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 23:52:56.445536"], ["updated_at", "2016-05-16 23:52:56.445536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.447381"], ["updated_at", "2016-05-16 23:52:56.447381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 23:52:56.450489"], ["updated_at", "2016-05-16 23:52:56.450489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.452083"], ["updated_at", "2016-05-16 23:52:56.452083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:52:56.454952"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:52:56.456517"], ["updated_at", "2016-05-16 23:52:56.456517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 8a591aff-8d58-4639-855c-e4cec5bf7fb3) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:52:56.442068"], ["updated_at", "2016-05-16 23:52:56.442068"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.465076"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:52:56.447381"], ["updated_at", "2016-05-16 23:52:56.447381"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.469831"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:52:56.452083"], ["updated_at", "2016-05-16 23:52:56.452083"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:52:56.476063"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:52:56.478633"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8a591aff-8d58-4639-855c-e4cec5bf7fb3] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.63ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 23:52:56.484289"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 23:52:56.495984"], ["updated_at", "2016-05-16 23:52:56.495984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 23:52:56.507664"], ["updated_at", "2016-05-16 23:52:56.507664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 23:52:56.512676"], ["updated_at", "2016-05-16 23:52:56.512676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 23:52:56.517823"], ["updated_at", "2016-05-16 23:52:56.517823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 23:52:56.523318"], ["updated_at", "2016-05-16 23:52:56.523318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:52:56.524957"], ["updated_at", "2016-05-16 23:52:56.524957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 23:52:56.530984"], ["updated_at", "2016-05-16 23:52:56.530984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:52:56.533135"], ["updated_at", "2016-05-16 23:52:56.533135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 23:52:56.539350"], ["updated_at", "2016-05-16 23:52:56.539350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 23:52:56.544836"], ["updated_at", "2016-05-16 23:52:56.544836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 23:52:56.550017"], ["updated_at", "2016-05-16 23:52:56.550017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:52:56.688403"], ["updated_at", "2016-05-16 23:52:56.688403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:52:56.706172"], ["updated_at", "2016-05-16 23:52:56.706172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 23:52:56.708969"], ["updated_at", "2016-05-16 23:52:56.708969"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.711166"], ["updated_at", "2016-05-16 23:52:56.711166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:52:56.715310"], ["updated_at", "2016-05-16 23:52:56.715310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 23:52:56.718178"], ["updated_at", "2016-05-16 23:52:56.718178"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.722159"], ["updated_at", "2016-05-16 23:52:56.722159"]]  (0.2ms) 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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 23:52:56.729558"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 23:52:56.742579"], ["updated_at", "2016-05-16 23:52:56.742579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:52:56.746516"], ["updated_at", "2016-05-16 23:52:56.746516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 23:52:56.749220"], ["updated_at", "2016-05-16 23:52:56.749220"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.750832"], ["updated_at", "2016-05-16 23:52:56.750832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.753042"], ["updated_at", "2016-05-16 23:52:56.753042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:52:56.775799"], ["updated_at", "2016-05-16 23:52:56.775799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 23:52:56.779170"], ["updated_at", "2016-05-16 23:52:56.779170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 23:52:56.831555"], ["updated_at", "2016-05-16 23:52:56.831555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.5ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:52:56.849547"], ["updated_at", "2016-05-16 23:52:56.849547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (1.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 23:52:56.852271"], ["updated_at", "2016-05-16 23:52:56.852271"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.858322"], ["updated_at", "2016-05-16 23:52:56.858322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 23:52:56.875187"], ["updated_at", "2016-05-16 23:52:56.875187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:52:56.877512"], ["updated_at", "2016-05-16 23:52:56.877512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 23:52:56.880553"], ["updated_at", "2016-05-16 23:52:56.880553"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.882394"], ["updated_at", "2016-05-16 23:52:56.882394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:52:56.884761"], ["updated_at", "2016-05-16 23:52:56.884761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 23:52:56.889221"], ["updated_at", "2016-05-16 23:52:56.889221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction 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.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';  (1.0ms) DELETE FROM "pulitzer_tags";  (0.2ms) 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';  (0.9ms) DELETE FROM "search_locations";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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_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.8ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:53:51.108809"], ["updated_at", "2016-05-16 23:53:51.108809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (25.3ms) Completed 200 OK in 55ms (Views: 33.5ms | ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:53:51.176716"], ["updated_at", "2016-05-16 23:53:51.176716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (6.6ms) Completed 200 OK in 15ms (Views: 8.3ms | ActiveRecord: 0.9ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:53:51.199817"], ["updated_at", "2016-05-16 23:53:51.199817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (9.0ms) Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:53:51.221862"], ["updated_at", "2016-05-16 23:53:51.221862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.2ms) Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:53:51.241289"], ["updated_at", "2016-05-16 23:53:51.241289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:53:51.258163"], ["updated_at", "2016-05-16 23:53:51.258163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (2.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (8.1ms) Completed 200 OK in 19ms (Views: 11.8ms | ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:53:51.293164"], ["updated_at", "2016-05-16 23:53:51.293164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (2.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (8.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (10.1ms) Completed 200 OK in 28ms (Views: 11.6ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:53:51.333725"], ["updated_at", "2016-05-16 23:53:51.333725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.2ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (11.7ms) Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.3ms)  (0.7ms) 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", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:53:51.360885"], ["updated_at", "2016-05-16 23:53:51.360885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:53:51.364436"], ["updated_at", "2016-05-16 23:53:51.364436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.0ms) Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:53:51.392258"], ["updated_at", "2016-05-16 23:53:51.392258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 23:53:51.505125"], ["updated_at", "2016-05-16 23:53:51.505125"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:51.508369"], ["updated_at", "2016-05-16 23:53:51.508369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:51.510514"], ["updated_at", "2016-05-16 23:53:51.510514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 23:53:51.523343"], ["updated_at", "2016-05-16 23:53:51.523343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.534940"], ["updated_at", "2016-05-16 23:53:51.534940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 23:53:51.538439"], ["updated_at", "2016-05-16 23:53:51.538439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.540003"], ["updated_at", "2016-05-16 23:53:51.540003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 23:53:51.543099"], ["updated_at", "2016-05-16 23:53:51.543099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.544684"], ["updated_at", "2016-05-16 23:53:51.544684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:53:51.549017"], ["updated_at", "2016-05-16 23:53:51.549017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:53:51.534940"], ["updated_at", "2016-05-16 23:53:51.534940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.557000"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:53:51.540003"], ["updated_at", "2016-05-16 23:53:51.540003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.562547"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:53:51.544684"], ["updated_at", "2016-05-16 23:53:51.544684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.567602"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:53:51.572905"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.3ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:53:51.583667"], ["updated_at", "2016-05-16 23:53:51.583667"]]  (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 1 [["slug", "winterfell-news-2"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 23:53:51.587868"], ["updated_at", "2016-05-16 23:53:51.587868"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:51.592044"], ["updated_at", "2016-05-16 23:53:51.592044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:51.595316"], ["updated_at", "2016-05-16 23:53:51.595316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 23:53:51.602473"], ["updated_at", "2016-05-16 23:53:51.602473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.606212"], ["updated_at", "2016-05-16 23:53:51.606212"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 23:53:51.612386"], ["updated_at", "2016-05-16 23:53:51.612386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.616041"], ["updated_at", "2016-05-16 23:53:51.616041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 23:53:51.623044"], ["updated_at", "2016-05-16 23:53:51.623044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.626469"], ["updated_at", "2016-05-16 23:53:51.626469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:53:51.630326"], ["updated_at", "2016-05-16 23:53:51.630326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.9ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:53:51.606212"], ["updated_at", "2016-05-16 23:53:51.606212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.647937"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:53:51.616041"], ["updated_at", "2016-05-16 23:53:51.616041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.657707"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:53:51.626469"], ["updated_at", "2016-05-16 23:53:51.626469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.667181"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:53:51.671884"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.8ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:53:51.688167"], ["updated_at", "2016-05-16 23:53:51.688167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 23:53:51.703693"], ["updated_at", "2016-05-16 23:53:51.703693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 23:53:51.706481"], ["updated_at", "2016-05-16 23:53:51.706481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 23:53:51.709605"], ["updated_at", "2016-05-16 23:53:51.709605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 23:53:51.711187"], ["updated_at", "2016-05-16 23:53:51.711187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 23:53:51.713752"], ["updated_at", "2016-05-16 23:53:51.713752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 23:53:51.715423"], ["updated_at", "2016-05-16 23:53:51.715423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 23:53:51.720186"], ["updated_at", "2016-05-16 23:53:51.720186"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:51.722016"], ["updated_at", "2016-05-16 23:53:51.722016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 23:53:51.730248"], ["updated_at", "2016-05-16 23:53:51.730248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 23:53:51.734435"], ["updated_at", "2016-05-16 23:53:51.734435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 23:53:51.739932"], ["updated_at", "2016-05-16 23:53:51.739932"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:53:51.748907"], ["updated_at", "2016-05-16 23:53:51.748907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 23:53:51.751974"], ["updated_at", "2016-05-16 23:53:51.751974"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:51.754713"], ["updated_at", "2016-05-16 23:53:51.754713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:51.756479"], ["updated_at", "2016-05-16 23:53:51.756479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 23:53:51.759000"], ["updated_at", "2016-05-16 23:53:51.759000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.760500"], ["updated_at", "2016-05-16 23:53:51.760500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 23:53:51.763412"], ["updated_at", "2016-05-16 23:53:51.763412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.764927"], ["updated_at", "2016-05-16 23:53:51.764927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 23:53:51.767433"], ["updated_at", "2016-05-16 23:53:51.767433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.769347"], ["updated_at", "2016-05-16 23:53:51.769347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:53:51.772953"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:53:51.774766"], ["updated_at", "2016-05-16 23:53:51.774766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ff6dd299-d1d5-42db-b7ba-05e26712f8f2) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:53:51.760500"], ["updated_at", "2016-05-16 23:53:51.760500"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.788590"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:53:51.764927"], ["updated_at", "2016-05-16 23:53:51.764927"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.793072"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:53:51.769347"], ["updated_at", "2016-05-16 23:53:51.769347"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.797519"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:53:51.800040"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ff6dd299-d1d5-42db-b7ba-05e26712f8f2] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.92ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:53:51.812821"], ["updated_at", "2016-05-16 23:53:51.812821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 23:53:51.815548"], ["updated_at", "2016-05-16 23:53:51.815548"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:51.817484"], ["updated_at", "2016-05-16 23:53:51.817484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:51.819014"], ["updated_at", "2016-05-16 23:53:51.819014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 23:53:51.822319"], ["updated_at", "2016-05-16 23:53:51.822319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.823914"], ["updated_at", "2016-05-16 23:53:51.823914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 23:53:51.827378"], ["updated_at", "2016-05-16 23:53:51.827378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.829185"], ["updated_at", "2016-05-16 23:53:51.829185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 23:53:51.832412"], ["updated_at", "2016-05-16 23:53:51.832412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.834055"], ["updated_at", "2016-05-16 23:53:51.834055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:53:51.837009"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:53:51.839304"], ["updated_at", "2016-05-16 23:53:51.839304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: cada8ff4-0c81-477b-86b6-a3d9f3056ada) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:53:51.823914"], ["updated_at", "2016-05-16 23:53:51.823914"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.848974"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:53:51.829185"], ["updated_at", "2016-05-16 23:53:51.829185"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.854386"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:53:51.834055"], ["updated_at", "2016-05-16 23:53:51.834055"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.859548"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:53:51.861809"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cada8ff4-0c81-477b-86b6-a3d9f3056ada] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.45ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 23:53:51.868484"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:53:51.870400"], ["updated_at", "2016-05-16 23:53:51.870400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 5702a027-fcee-48f8-92a7-fff52ba9d06e) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:53:51.823914"], ["updated_at", "2016-05-16 23:53:51.823914"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:53:51.878381"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:53:51.829185"], ["updated_at", "2016-05-16 23:53:51.829185"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:53:51.883265"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:53:51.834055"], ["updated_at", "2016-05-16 23:53:51.834055"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:53:51.888243"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:53:51.890808"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5702a027-fcee-48f8-92a7-fff52ba9d06e] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.58ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:53:51.904024"], ["updated_at", "2016-05-16 23:53:51.904024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 23:53:51.907016"], ["updated_at", "2016-05-16 23:53:51.907016"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:51.909553"], ["updated_at", "2016-05-16 23:53:51.909553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:51.911399"], ["updated_at", "2016-05-16 23:53:51.911399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 23:53:51.914645"], ["updated_at", "2016-05-16 23:53:51.914645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.916260"], ["updated_at", "2016-05-16 23:53:51.916260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 23:53:51.918881"], ["updated_at", "2016-05-16 23:53:51.918881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.920289"], ["updated_at", "2016-05-16 23:53:51.920289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 23:53:51.922765"], ["updated_at", "2016-05-16 23:53:51.922765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:53:51.924243"], ["updated_at", "2016-05-16 23:53:51.924243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:53:51.927008"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:53:51.928578"], ["updated_at", "2016-05-16 23:53:51.928578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 395d5a97-ab70-464e-a122-b6a980ce38b8) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:53:51.916260"], ["updated_at", "2016-05-16 23:53:51.916260"]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.937985"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:53:51.920289"], ["updated_at", "2016-05-16 23:53:51.920289"]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.942581"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:53:51.924243"], ["updated_at", "2016-05-16 23:53:51.924243"]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:53:51.946778"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:53:51.949325"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [395d5a97-ab70-464e-a122-b6a980ce38b8] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.34ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 23:53:51.955968"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 23:53:51.967021"], ["updated_at", "2016-05-16 23:53:51.967021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 23:53:51.977993"], ["updated_at", "2016-05-16 23:53:51.977993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 23:53:51.983181"], ["updated_at", "2016-05-16 23:53:51.983181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 23:53:51.988453"], ["updated_at", "2016-05-16 23:53:51.988453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 23:53:51.993527"], ["updated_at", "2016-05-16 23:53:51.993527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:53:51.995694"], ["updated_at", "2016-05-16 23:53:51.995694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 23:53:52.002493"], ["updated_at", "2016-05-16 23:53:52.002493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:53:52.005446"], ["updated_at", "2016-05-16 23:53:52.005446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 23:53:52.011000"], ["updated_at", "2016-05-16 23:53:52.011000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 23:53:52.016315"], ["updated_at", "2016-05-16 23:53:52.016315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 23:53:52.022213"], ["updated_at", "2016-05-16 23:53:52.022213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:53:52.163201"], ["updated_at", "2016-05-16 23:53:52.163201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:53:52.179627"], ["updated_at", "2016-05-16 23:53:52.179627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 23:53:52.182710"], ["updated_at", "2016-05-16 23:53:52.182710"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:52.184905"], ["updated_at", "2016-05-16 23:53:52.184905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.4ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:53:52.196464"], ["updated_at", "2016-05-16 23:53:52.196464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 23:53:52.199562"], ["updated_at", "2016-05-16 23:53:52.199562"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:52.201485"], ["updated_at", "2016-05-16 23:53:52.201485"]]  (0.7ms) 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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 23:53:52.205970"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.8ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 23:53:52.218820"], ["updated_at", "2016-05-16 23:53:52.218820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:53:52.225592"], ["updated_at", "2016-05-16 23:53:52.225592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 23:53:52.228837"], ["updated_at", "2016-05-16 23:53:52.228837"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:52.230535"], ["updated_at", "2016-05-16 23:53:52.230535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:52.232177"], ["updated_at", "2016-05-16 23:53:52.232177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:53:52.256953"], ["updated_at", "2016-05-16 23:53:52.256953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 23:53:52.260103"], ["updated_at", "2016-05-16 23:53:52.260103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 23:53:52.311086"], ["updated_at", "2016-05-16 23:53:52.311086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:53:52.326290"], ["updated_at", "2016-05-16 23:53:52.326290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 23:53:52.331359"], ["updated_at", "2016-05-16 23:53:52.331359"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:52.333734"], ["updated_at", "2016-05-16 23:53:52.333734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 23:53:52.353474"], ["updated_at", "2016-05-16 23:53:52.353474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:53:52.356172"], ["updated_at", "2016-05-16 23:53:52.356172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 23:53:52.359048"], ["updated_at", "2016-05-16 23:53:52.359048"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:53:52.360699"], ["updated_at", "2016-05-16 23:53:52.360699"]]  (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", "2016-05-16 23:53:52.362198"], ["updated_at", "2016-05-16 23:53:52.362198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 23:53:52.364211"], ["updated_at", "2016-05-16 23:53:52.364211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.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 "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.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.8ms) 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';  (0.8ms) 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.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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:54:19.316599"], ["updated_at", "2016-05-16 23:54:19.316599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (6.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (26.5ms) Completed 200 OK in 54ms (Views: 35.7ms | ActiveRecord: 0.3ms)  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:54:19.384692"], ["updated_at", "2016-05-16 23:54:19.384692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.4ms) Completed 200 OK in 15ms (Views: 9.2ms | ActiveRecord: 0.8ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:54:19.408250"], ["updated_at", "2016-05-16 23:54:19.408250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (10.2ms) Completed 200 OK in 13ms (Views: 12.5ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:54:19.430999"], ["updated_at", "2016-05-16 23:54:19.430999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.4ms) Completed 200 OK in 10ms (Views: 5.8ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-16 23:54:19.454061"], ["updated_at", "2016-05-16 23:54:19.454061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:54:19.471164"], ["updated_at", "2016-05-16 23:54:19.471164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (2.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (8.8ms) Completed 200 OK in 20ms (Views: 12.4ms | ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:54:19.507592"], ["updated_at", "2016-05-16 23:54:19.507592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (2.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (7.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (9.7ms) Completed 200 OK in 29ms (Views: 11.4ms | ActiveRecord: 1.0ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:54:19.549721"], ["updated_at", "2016-05-16 23:54:19.549721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (12.3ms) Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:54:19.577256"], ["updated_at", "2016-05-16 23:54:19.577256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-16 23:54:19.582045"], ["updated_at", "2016-05-16 23:54:19.582045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.3ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:54:19.610719"], ["updated_at", "2016-05-16 23:54:19.610719"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-16 23:54:19.722760"], ["updated_at", "2016-05-16 23:54:19.722760"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:19.725709"], ["updated_at", "2016-05-16 23:54:19.725709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:19.727689"], ["updated_at", "2016-05-16 23:54:19.727689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-16 23:54:19.740315"], ["updated_at", "2016-05-16 23:54:19.740315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:54:19.751930"], ["updated_at", "2016-05-16 23:54:19.751930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-16 23:54:19.755344"], ["updated_at", "2016-05-16 23:54:19.755344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:54:19.757259"], ["updated_at", "2016-05-16 23:54:19.757259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-16 23:54:19.760271"], ["updated_at", "2016-05-16 23:54:19.760271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:54:19.762003"], ["updated_at", "2016-05-16 23:54:19.762003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:54:19.766693"], ["updated_at", "2016-05-16 23:54:19.766693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:54:19.751930"], ["updated_at", "2016-05-16 23:54:19.751930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:19.776788"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:54:19.757259"], ["updated_at", "2016-05-16 23:54:19.757259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:19.783647"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:54:19.762003"], ["updated_at", "2016-05-16 23:54:19.762003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:19.788716"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:54:19.793717"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:54:19.805097"], ["updated_at", "2016-05-16 23:54:19.805097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-16 23:54:19.809317"], ["updated_at", "2016-05-16 23:54:19.809317"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:19.813405"], ["updated_at", "2016-05-16 23:54:19.813405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:19.817173"], ["updated_at", "2016-05-16 23:54:19.817173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-16 23:54:19.823873"], ["updated_at", "2016-05-16 23:54:19.823873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:54:19.827408"], ["updated_at", "2016-05-16 23:54:19.827408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-16 23:54:19.832984"], ["updated_at", "2016-05-16 23:54:19.832984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:54:19.836774"], ["updated_at", "2016-05-16 23:54:19.836774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-16 23:54:19.843715"], ["updated_at", "2016-05-16 23:54:19.843715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:54:19.847212"], ["updated_at", "2016-05-16 23:54:19.847212"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:54:19.851399"], ["updated_at", "2016-05-16 23:54:19.851399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:54:19.827408"], ["updated_at", "2016-05-16 23:54:19.827408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:19.869395"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:54:19.836774"], ["updated_at", "2016-05-16 23:54:19.836774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:19.877717"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:54:19.847212"], ["updated_at", "2016-05-16 23:54:19.847212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:19.886795"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:54:19.890933"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:54:19.914899"], ["updated_at", "2016-05-16 23:54:19.914899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-16 23:54:19.923157"], ["updated_at", "2016-05-16 23:54:19.923157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-16 23:54:19.925821"], ["updated_at", "2016-05-16 23:54:19.925821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-16 23:54:19.929078"], ["updated_at", "2016-05-16 23:54:19.929078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-16 23:54:19.930640"], ["updated_at", "2016-05-16 23:54:19.930640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-16 23:54:19.933023"], ["updated_at", "2016-05-16 23:54:19.933023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-16 23:54:19.934231"], ["updated_at", "2016-05-16 23:54:19.934231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-16 23:54:19.938460"], ["updated_at", "2016-05-16 23:54:19.938460"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:19.940207"], ["updated_at", "2016-05-16 23:54:19.940207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-16 23:54:19.947759"], ["updated_at", "2016-05-16 23:54:19.947759"]]  (0.0ms) RELEASE SAVEPOINT active_record_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 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-16 23:54:19.953195"], ["updated_at", "2016-05-16 23:54:19.953195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-16 23:54:19.957562"], ["updated_at", "2016-05-16 23:54:19.957562"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:54:19.965902"], ["updated_at", "2016-05-16 23:54:19.965902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-16 23:54:19.969070"], ["updated_at", "2016-05-16 23:54:19.969070"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:19.971250"], ["updated_at", "2016-05-16 23:54:19.971250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:19.973155"], ["updated_at", "2016-05-16 23:54:19.973155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-16 23:54:19.975989"], ["updated_at", "2016-05-16 23:54:19.975989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:54:19.977615"], ["updated_at", "2016-05-16 23:54:19.977615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-16 23:54:19.980198"], ["updated_at", "2016-05-16 23:54:19.980198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:54:19.981621"], ["updated_at", "2016-05-16 23:54:19.981621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-16 23:54:19.986105"], ["updated_at", "2016-05-16 23:54:19.986105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:54:19.988016"], ["updated_at", "2016-05-16 23:54:19.988016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:54:19.990710"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:54:19.992427"], ["updated_at", "2016-05-16 23:54:19.992427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ade32afd-21aa-4a2b-b41d-afb696971170) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:54:19.977615"], ["updated_at", "2016-05-16 23:54:19.977615"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:20.005641"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:54:19.981621"], ["updated_at", "2016-05-16 23:54:19.981621"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:20.010614"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:54:19.988016"], ["updated_at", "2016-05-16 23:54:19.988016"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:20.017557"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:54:20.021041"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ade32afd-21aa-4a2b-b41d-afb696971170] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.73ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:54:20.034113"], ["updated_at", "2016-05-16 23:54:20.034113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-16 23:54:20.037149"], ["updated_at", "2016-05-16 23:54:20.037149"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:20.039481"], ["updated_at", "2016-05-16 23:54:20.039481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:20.041450"], ["updated_at", "2016-05-16 23:54:20.041450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-16 23:54:20.044095"], ["updated_at", "2016-05-16 23:54:20.044095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:54:20.045762"], ["updated_at", "2016-05-16 23:54:20.045762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-16 23:54:20.048475"], ["updated_at", "2016-05-16 23:54:20.048475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:54:20.049976"], ["updated_at", "2016-05-16 23:54:20.049976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-16 23:54:20.052483"], ["updated_at", "2016-05-16 23:54:20.052483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:54:20.053862"], ["updated_at", "2016-05-16 23:54:20.053862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:54:20.055871"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:54:20.057469"], ["updated_at", "2016-05-16 23:54:20.057469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 23d0c09d-986d-49a3-bee8-114c761d06eb) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:54:20.045762"], ["updated_at", "2016-05-16 23:54:20.045762"]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:20.068568"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:54:20.049976"], ["updated_at", "2016-05-16 23:54:20.049976"]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:20.074571"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:54:20.053862"], ["updated_at", "2016-05-16 23:54:20.053862"]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:20.079118"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:54:20.081579"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [23d0c09d-986d-49a3-bee8-114c761d06eb] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.14ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 23:54:20.088859"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:54:20.090457"], ["updated_at", "2016-05-16 23:54:20.090457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: cde3db29-9257-4e2a-96d0-991ce73d4693) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:54:20.045762"], ["updated_at", "2016-05-16 23:54:20.045762"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:54:20.099210"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:54:20.049976"], ["updated_at", "2016-05-16 23:54:20.049976"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:54:20.104244"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:54:20.053862"], ["updated_at", "2016-05-16 23:54:20.053862"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-16 23:54:20.109301"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:54:20.111764"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cde3db29-9257-4e2a-96d0-991ce73d4693] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.81ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:54:20.124246"], ["updated_at", "2016-05-16 23:54:20.124246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-16 23:54:20.127303"], ["updated_at", "2016-05-16 23:54:20.127303"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:20.129294"], ["updated_at", "2016-05-16 23:54:20.129294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:20.131084"], ["updated_at", "2016-05-16 23:54:20.131084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-16 23:54:20.134119"], ["updated_at", "2016-05-16 23:54:20.134119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-16 23:54:20.135956"], ["updated_at", "2016-05-16 23:54:20.135956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-16 23:54:20.139468"], ["updated_at", "2016-05-16 23:54:20.139468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-16 23:54:20.141278"], ["updated_at", "2016-05-16 23:54:20.141278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-16 23:54:20.144134"], ["updated_at", "2016-05-16 23:54:20.144134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-16 23:54:20.145627"], ["updated_at", "2016-05-16 23:54:20.145627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-16 23:54:20.147729"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-16 23:54:20.149860"], ["updated_at", "2016-05-16 23:54:20.149860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:54:20.135956"], ["updated_at", "2016-05-16 23:54:20.135956"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:20.159264"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-16 23:54:20.141278"], ["updated_at", "2016-05-16 23:54:20.141278"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:20.164017"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-16 23:54:20.145627"], ["updated_at", "2016-05-16 23:54:20.145627"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-16 23:54:20.169566"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-16 23:54:20.171984"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd2f08cd-108b-4c39-8fb8-d42c5eb6ca59] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.6ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-16 23:54:20.177843"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-16 23:54:20.189918"], ["updated_at", "2016-05-16 23:54:20.189918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-16 23:54:20.200603"], ["updated_at", "2016-05-16 23:54:20.200603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-16 23:54:20.205441"], ["updated_at", "2016-05-16 23:54:20.205441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-16 23:54:20.210500"], ["updated_at", "2016-05-16 23:54:20.210500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 23:54:20.216445"], ["updated_at", "2016-05-16 23:54:20.216445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:54:20.218653"], ["updated_at", "2016-05-16 23:54:20.218653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-16 23:54:20.225543"], ["updated_at", "2016-05-16 23:54:20.225543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-16 23:54:20.227295"], ["updated_at", "2016-05-16 23:54:20.227295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-16 23:54:20.232761"], ["updated_at", "2016-05-16 23:54:20.232761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-16 23:54:20.238709"], ["updated_at", "2016-05-16 23:54:20.238709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-16 23:54:20.244211"], ["updated_at", "2016-05-16 23:54:20.244211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:54:20.384113"], ["updated_at", "2016-05-16 23:54:20.384113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:54:20.400625"], ["updated_at", "2016-05-16 23:54:20.400625"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-16 23:54:20.409859"], ["updated_at", "2016-05-16 23:54:20.409859"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:20.412283"], ["updated_at", "2016-05-16 23:54:20.412283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:54:20.418446"], ["updated_at", "2016-05-16 23:54:20.418446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-16 23:54:20.421420"], ["updated_at", "2016-05-16 23:54:20.421420"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:20.423468"], ["updated_at", "2016-05-16 23:54:20.423468"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-16 23:54:20.426400"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-16 23:54:20.440487"], ["updated_at", "2016-05-16 23:54:20.440487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:54:20.444623"], ["updated_at", "2016-05-16 23:54:20.444623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-16 23:54:20.447552"], ["updated_at", "2016-05-16 23:54:20.447552"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:20.449703"], ["updated_at", "2016-05-16 23:54:20.449703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:20.451381"], ["updated_at", "2016-05-16 23:54:20.451381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:54:20.475104"], ["updated_at", "2016-05-16 23:54:20.475104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-16 23:54:20.478328"], ["updated_at", "2016-05-16 23:54:20.478328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-16 23:54:20.526948"], ["updated_at", "2016-05-16 23:54:20.526948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.3ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:54:20.544922"], ["updated_at", "2016-05-16 23:54:20.544922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-16 23:54:20.547844"], ["updated_at", "2016-05-16 23:54:20.547844"]] SQL (0.4ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:20.551147"], ["updated_at", "2016-05-16 23:54:20.551147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-16 23:54:20.570432"], ["updated_at", "2016-05-16 23:54:20.570432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-16 23:54:20.573598"], ["updated_at", "2016-05-16 23:54:20.573598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-16 23:54:20.576726"], ["updated_at", "2016-05-16 23:54:20.576726"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:20.578409"], ["updated_at", "2016-05-16 23:54:20.578409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-16 23:54:20.580709"], ["updated_at", "2016-05-16 23:54:20.580709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-16 23:54:20.584891"], ["updated_at", "2016-05-16 23:54:20.584891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.3ms) 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.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';  (0.7ms) 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';  (0.6ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (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.8ms) 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.7ms) 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';  (0.6ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:04:42.020251"], ["updated_at", "2016-05-17 00:04:42.020251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (24.2ms) Completed 200 OK in 54ms (Views: 32.4ms | ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:04:42.088323"], ["updated_at", "2016-05-17 00:04:42.088323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (6.9ms) Completed 200 OK in 16ms (Views: 8.5ms | ActiveRecord: 1.0ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:04:42.112687"], ["updated_at", "2016-05-17 00:04:42.112687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (9.4ms) Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:04:42.135587"], ["updated_at", "2016-05-17 00:04:42.135587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.1ms) Completed 200 OK in 9ms (Views: 4.5ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:04:42.155110"], ["updated_at", "2016-05-17 00:04:42.155110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:04:42.171002"], ["updated_at", "2016-05-17 00:04:42.171002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.2ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (2.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (9.5ms) Completed 200 OK in 22ms (Views: 13.7ms | ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:04:42.208142"], ["updated_at", "2016-05-17 00:04:42.208142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::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::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (2.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (7.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (9.7ms) Completed 200 OK in 22ms (Views: 11.2ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:04:42.249208"], ["updated_at", "2016-05-17 00:04:42.249208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (12.2ms) Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:04:42.275503"], ["updated_at", "2016-05-17 00:04:42.275503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:04:42.279065"], ["updated_at", "2016-05-17 00:04:42.279065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (0.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.6ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:42.307956"], ["updated_at", "2016-05-17 00:04:42.307956"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-17 00:04:42.424108"], ["updated_at", "2016-05-17 00:04:42.424108"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:42.427771"], ["updated_at", "2016-05-17 00:04:42.427771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:42.430483"], ["updated_at", "2016-05-17 00:04:42.430483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-17 00:04:42.452360"], ["updated_at", "2016-05-17 00:04:42.452360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.455330"], ["updated_at", "2016-05-17 00:04:42.455330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-17 00:04:42.458789"], ["updated_at", "2016-05-17 00:04:42.458789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.460551"], ["updated_at", "2016-05-17 00:04:42.460551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-17 00:04:42.464016"], ["updated_at", "2016-05-17 00:04:42.464016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.465478"], ["updated_at", "2016-05-17 00:04:42.465478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:04:42.469516"], ["updated_at", "2016-05-17 00:04:42.469516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:04:42.455330"], ["updated_at", "2016-05-17 00:04:42.455330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.477286"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:04:42.460551"], ["updated_at", "2016-05-17 00:04:42.460551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.483100"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:04:42.465478"], ["updated_at", "2016-05-17 00:04:42.465478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.487456"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:04:42.491952"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:42.504793"], ["updated_at", "2016-05-17 00:04:42.504793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-17 00:04:42.507771"], ["updated_at", "2016-05-17 00:04:42.507771"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:42.510421"], ["updated_at", "2016-05-17 00:04:42.510421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:42.512336"], ["updated_at", "2016-05-17 00:04:42.512336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:42.518571"], ["updated_at", "2016-05-17 00:04:42.518571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 2], ["slug", "winterfell-news-3"], ["created_at", "2016-05-17 00:04:42.520722"], ["updated_at", "2016-05-17 00:04:42.520722"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 2], ["created_at", "2016-05-17 00:04:42.522227"], ["updated_at", "2016-05-17 00:04:42.522227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 2], ["created_at", "2016-05-17 00:04:42.523627"], ["updated_at", "2016-05-17 00:04:42.523627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-17 00:04:42.526824"], ["updated_at", "2016-05-17 00:04:42.526824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 4], ["created_at", "2016-05-17 00:04:42.528696"], ["updated_at", "2016-05-17 00:04:42.528696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-17 00:04:42.531586"], ["updated_at", "2016-05-17 00:04:42.531586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 4], ["created_at", "2016-05-17 00:04:42.533066"], ["updated_at", "2016-05-17 00:04:42.533066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-17 00:04:42.535618"], ["updated_at", "2016-05-17 00:04:42.535618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 4], ["created_at", "2016-05-17 00:04:42.537888"], ["updated_at", "2016-05-17 00:04:42.537888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 4]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:42.554983"], ["updated_at", "2016-05-17 00:04:42.554983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-17 00:04:42.557835"], ["updated_at", "2016-05-17 00:04:42.557835"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:42.559948"], ["updated_at", "2016-05-17 00:04:42.559948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:42.561861"], ["updated_at", "2016-05-17 00:04:42.561861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-17 00:04:42.564561"], ["updated_at", "2016-05-17 00:04:42.564561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.566047"], ["updated_at", "2016-05-17 00:04:42.566047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-17 00:04:42.568667"], ["updated_at", "2016-05-17 00:04:42.568667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.570078"], ["updated_at", "2016-05-17 00:04:42.570078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-17 00:04:42.574318"], ["updated_at", "2016-05-17 00:04:42.574318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.576382"], ["updated_at", "2016-05-17 00:04:42.576382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:04:42.579027"], ["updated_at", "2016-05-17 00:04:42.579027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:04:42.566047"], ["updated_at", "2016-05-17 00:04:42.566047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.586359"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:04:42.570078"], ["updated_at", "2016-05-17 00:04:42.570078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.591798"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:04:42.576382"], ["updated_at", "2016-05-17 00:04:42.576382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.597628"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:04:42.600014"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:42.610376"], ["updated_at", "2016-05-17 00:04:42.610376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-17 00:04:42.617836"], ["updated_at", "2016-05-17 00:04:42.617836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-17 00:04:42.620434"], ["updated_at", "2016-05-17 00:04:42.620434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-17 00:04:42.622866"], ["updated_at", "2016-05-17 00:04:42.622866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-17 00:04:42.624135"], ["updated_at", "2016-05-17 00:04:42.624135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-17 00:04:42.626321"], ["updated_at", "2016-05-17 00:04:42.626321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-17 00:04:42.627792"], ["updated_at", "2016-05-17 00:04:42.627792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-17 00:04:42.631839"], ["updated_at", "2016-05-17 00:04:42.631839"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:42.633398"], ["updated_at", "2016-05-17 00:04:42.633398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-17 00:04:42.644195"], ["updated_at", "2016-05-17 00:04:42.644195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-17 00:04:42.649257"], ["updated_at", "2016-05-17 00:04:42.649257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-17 00:04:42.653817"], ["updated_at", "2016-05-17 00:04:42.653817"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:42.662880"], ["updated_at", "2016-05-17 00:04:42.662880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-17 00:04:42.665690"], ["updated_at", "2016-05-17 00:04:42.665690"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:42.667713"], ["updated_at", "2016-05-17 00:04:42.667713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:42.669692"], ["updated_at", "2016-05-17 00:04:42.669692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-17 00:04:42.672412"], ["updated_at", "2016-05-17 00:04:42.672412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.673916"], ["updated_at", "2016-05-17 00:04:42.673916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-17 00:04:42.677231"], ["updated_at", "2016-05-17 00:04:42.677231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.678895"], ["updated_at", "2016-05-17 00:04:42.678895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-17 00:04:42.681531"], ["updated_at", "2016-05-17 00:04:42.681531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.682968"], ["updated_at", "2016-05-17 00:04:42.682968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 00:04:42.685554"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:04:42.687324"], ["updated_at", "2016-05-17 00:04:42.687324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: e4795aca-ca8f-4c65-b0c0-24e037cb665c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:04:42.673916"], ["updated_at", "2016-05-17 00:04:42.673916"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.699310"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:04:42.678895"], ["updated_at", "2016-05-17 00:04:42.678895"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.703998"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:04:42.682968"], ["updated_at", "2016-05-17 00:04:42.682968"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.708321"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:04:42.711745"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e4795aca-ca8f-4c65-b0c0-24e037cb665c] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.49ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:42.723437"], ["updated_at", "2016-05-17 00:04:42.723437"]]  (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 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-17 00:04:42.725912"], ["updated_at", "2016-05-17 00:04:42.725912"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:42.727810"], ["updated_at", "2016-05-17 00:04:42.727810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:42.729304"], ["updated_at", "2016-05-17 00:04:42.729304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-17 00:04:42.732459"], ["updated_at", "2016-05-17 00:04:42.732459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.734319"], ["updated_at", "2016-05-17 00:04:42.734319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-17 00:04:42.737242"], ["updated_at", "2016-05-17 00:04:42.737242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.738699"], ["updated_at", "2016-05-17 00:04:42.738699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-17 00:04:42.741181"], ["updated_at", "2016-05-17 00:04:42.741181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.742597"], ["updated_at", "2016-05-17 00:04:42.742597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 00:04:42.745304"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:04:42.746945"], ["updated_at", "2016-05-17 00:04:42.746945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6b71eb14-a89c-41e6-a9a4-0c06a92801a7) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:04:42.734319"], ["updated_at", "2016-05-17 00:04:42.734319"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.754890"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:04:42.738699"], ["updated_at", "2016-05-17 00:04:42.738699"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.760784"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:04:42.742597"], ["updated_at", "2016-05-17 00:04:42.742597"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.766307"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:04:42.768656"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b71eb14-a89c-41e6-a9a4-0c06a92801a7] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.05ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 00:04:42.775440"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:04:42.777026"], ["updated_at", "2016-05-17 00:04:42.777026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 376ce0fb-f27a-4281-bd32-c1c0e12c2c8a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:04:42.734319"], ["updated_at", "2016-05-17 00:04:42.734319"]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 00:04:42.784907"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:04:42.738699"], ["updated_at", "2016-05-17 00:04:42.738699"]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 00:04:42.789487"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:04:42.742597"], ["updated_at", "2016-05-17 00:04:42.742597"]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 00:04:42.794667"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:04:42.797356"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [376ce0fb-f27a-4281-bd32-c1c0e12c2c8a] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.92ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:42.809526"], ["updated_at", "2016-05-17 00:04:42.809526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-05-17 00:04:42.812829"], ["updated_at", "2016-05-17 00:04:42.812829"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:42.815108"], ["updated_at", "2016-05-17 00:04:42.815108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:42.816881"], ["updated_at", "2016-05-17 00:04:42.816881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-17 00:04:42.819530"], ["updated_at", "2016-05-17 00:04:42.819530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.821017"], ["updated_at", "2016-05-17 00:04:42.821017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-17 00:04:42.823999"], ["updated_at", "2016-05-17 00:04:42.823999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.825546"], ["updated_at", "2016-05-17 00:04:42.825546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-17 00:04:42.828863"], ["updated_at", "2016-05-17 00:04:42.828863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:04:42.830509"], ["updated_at", "2016-05-17 00:04:42.830509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 00:04:42.832657"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:04:42.834077"], ["updated_at", "2016-05-17 00:04:42.834077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:04:42.821017"], ["updated_at", "2016-05-17 00:04:42.821017"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.842442"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] Pulitzer::ContentElementType Load (0.4ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:04:42.825546"], ["updated_at", "2016-05-17 00:04:42.825546"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.849308"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:04:42.830509"], ["updated_at", "2016-05-17 00:04:42.830509"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:04:42.854553"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:04:42.857128"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dd38f1c4-f7fb-4e87-b4e1-dcbc92e6df19] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.62ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 00:04:42.863257"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-17 00:04:42.875272"], ["updated_at", "2016-05-17 00:04:42.875272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-17 00:04:42.886656"], ["updated_at", "2016-05-17 00:04:42.886656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-17 00:04:42.891494"], ["updated_at", "2016-05-17 00:04:42.891494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-17 00:04:42.896686"], ["updated_at", "2016-05-17 00:04:42.896686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 00:04:42.901892"], ["updated_at", "2016-05-17 00:04:42.901892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:04:42.903564"], ["updated_at", "2016-05-17 00:04:42.903564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 00:04:42.909711"], ["updated_at", "2016-05-17 00:04:42.909711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:04:42.912388"], ["updated_at", "2016-05-17 00:04:42.912388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-05-17 00:04:42.918205"], ["updated_at", "2016-05-17 00:04:42.918205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-05-17 00:04:42.923176"], ["updated_at", "2016-05-17 00:04:42.923176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-17 00:04:42.928716"], ["updated_at", "2016-05-17 00:04:42.928716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:43.072599"], ["updated_at", "2016-05-17 00:04:43.072599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:43.087765"], ["updated_at", "2016-05-17 00:04:43.087765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-17 00:04:43.090416"], ["updated_at", "2016-05-17 00:04:43.090416"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:43.092630"], ["updated_at", "2016-05-17 00:04:43.092630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:43.103282"], ["updated_at", "2016-05-17 00:04:43.103282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-17 00:04:43.106283"], ["updated_at", "2016-05-17 00:04:43.106283"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:43.108160"], ["updated_at", "2016-05-17 00:04:43.108160"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-17 00:04:43.110886"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-17 00:04:43.123238"], ["updated_at", "2016-05-17 00:04:43.123238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:43.127124"], ["updated_at", "2016-05-17 00:04:43.127124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-17 00:04:43.132125"], ["updated_at", "2016-05-17 00:04:43.132125"]] SQL (0.4ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:43.142950"], ["updated_at", "2016-05-17 00:04:43.142950"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:43.146471"], ["updated_at", "2016-05-17 00:04:43.146471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:43.170904"], ["updated_at", "2016-05-17 00:04:43.170904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-05-17 00:04:43.174401"], ["updated_at", "2016-05-17 00:04:43.174401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-17 00:04:43.231229"], ["updated_at", "2016-05-17 00:04:43.231229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:43.247661"], ["updated_at", "2016-05-17 00:04:43.247661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-17 00:04:43.251245"], ["updated_at", "2016-05-17 00:04:43.251245"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:43.253735"], ["updated_at", "2016-05-17 00:04:43.253735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-17 00:04:43.275546"], ["updated_at", "2016-05-17 00:04:43.275546"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:04:43.278608"], ["updated_at", "2016-05-17 00:04:43.278608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-05-17 00:04:43.281910"], ["updated_at", "2016-05-17 00:04:43.281910"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:43.283474"], ["updated_at", "2016-05-17 00:04:43.283474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:04:43.285084"], ["updated_at", "2016-05-17 00:04:43.285084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-17 00:04:43.287774"], ["updated_at", "2016-05-17 00:04:43.287774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) 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';  (1.0ms) DELETE FROM "search_locations";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (1.7ms) DELETE FROM "pulitzer_versions";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';  (1.5ms) DELETE FROM "pulitzer_content_elements";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements';  (0.8ms) 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';  (0.7ms) 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.6ms) 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.9ms) 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.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:06:07.257526"], ["updated_at", "2016-05-17 00:06:07.257526"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-17 00:06:07.381432"], ["updated_at", "2016-05-17 00:06:07.381432"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:06:07.390251"], ["updated_at", "2016-05-17 00:06:07.390251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:06:07.392426"], ["updated_at", "2016-05-17 00:06:07.392426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.2ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:06:24.849970"], ["updated_at", "2016-05-17 00:06:24.849970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 2], ["slug", "winterfell-news-2"], ["created_at", "2016-05-17 00:06:24.853710"], ["updated_at", "2016-05-17 00:06:24.853710"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 2], ["created_at", "2016-05-17 00:06:24.855732"], ["updated_at", "2016-05-17 00:06:24.855732"]]  (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", 2], ["created_at", "2016-05-17 00:06:24.857488"], ["updated_at", "2016-05-17 00:06:24.857488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-17 00:06:24.878058"], ["updated_at", "2016-05-17 00:06:24.878058"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 4], ["created_at", "2016-05-17 00:06:24.884344"], ["updated_at", "2016-05-17 00:06:24.884344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-17 00:06:24.887596"], ["updated_at", "2016-05-17 00:06:24.887596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 4], ["created_at", "2016-05-17 00:06:24.889071"], ["updated_at", "2016-05-17 00:06:24.889071"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-17 00:06:24.895571"], ["updated_at", "2016-05-17 00:06:24.895571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 4], ["created_at", "2016-05-17 00:06:24.897504"], ["updated_at", "2016-05-17 00:06:24.897504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 4]]  (1.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (0.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';  (0.7ms) 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';  (2.9ms) 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 "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.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.7ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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';  (2.1ms) DELETE FROM "pulitzer_free_form_sections";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'pulitzer_free_form_sections';  (0.3ms) begin transaction  (0.2ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:06:48.377225"], ["updated_at", "2016-05-17 00:06:48.377225"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-17 00:06:48.500208"], ["updated_at", "2016-05-17 00:06:48.500208"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:06:48.508522"], ["updated_at", "2016-05-17 00:06:48.508522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:06:48.510887"], ["updated_at", "2016-05-17 00:06:48.510887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:06:51.750736"], ["updated_at", "2016-05-17 00:06:51.750736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.3ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:06:51.781050"], ["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (1.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) 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.7ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.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.7ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:07:06.248303"], ["updated_at", "2016-05-17 00:07:06.248303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (24.1ms) Completed 200 OK in 52ms (Views: 33.1ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:07:06.314025"], ["updated_at", "2016-05-17 00:07:06.314025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.6ms) Completed 200 OK in 15ms (Views: 9.3ms | ActiveRecord: 0.7ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:07:06.337605"], ["updated_at", "2016-05-17 00:07:06.337605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (8.0ms) Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:07:06.358678"], ["updated_at", "2016-05-17 00:07:06.358678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.7ms) Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:07:06.379763"], ["updated_at", "2016-05-17 00:07:06.379763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:07:06.397388"], ["updated_at", "2016-05-17 00:07:06.397388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (2.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (8.4ms) Completed 200 OK in 20ms (Views: 12.1ms | ActiveRecord: 0.4ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:07:06.432969"], ["updated_at", "2016-05-17 00:07:06.432969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::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::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (2.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (7.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (9.8ms) Completed 200 OK in 22ms (Views: 11.2ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:07:06.473741"], ["updated_at", "2016-05-17 00:07:06.473741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (10.9ms) Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:07:06.498757"], ["updated_at", "2016-05-17 00:07:06.498757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:07:06.502080"], ["updated_at", "2016-05-17 00:07:06.502080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.9ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:06.529596"], ["updated_at", "2016-05-17 00:07:06.529596"]]  (0.1ms) 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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-17 00:07:06.640408"], ["updated_at", "2016-05-17 00:07:06.640408"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:06.643824"], ["updated_at", "2016-05-17 00:07:06.643824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:06.646607"], ["updated_at", "2016-05-17 00:07:06.646607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-17 00:07:06.675161"], ["updated_at", "2016-05-17 00:07:06.675161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:07:06.677999"], ["updated_at", "2016-05-17 00:07:06.677999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-17 00:07:06.682953"], ["updated_at", "2016-05-17 00:07:06.682953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:07:06.685803"], ["updated_at", "2016-05-17 00:07:06.685803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-17 00:07:06.688546"], ["updated_at", "2016-05-17 00:07:06.688546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:07:06.689990"], ["updated_at", "2016-05-17 00:07:06.689990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:07:06.694476"], ["updated_at", "2016-05-17 00:07:06.694476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.3ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.3ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:07:06.677999"], ["updated_at", "2016-05-17 00:07:06.677999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:06.705582"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:07:06.685803"], ["updated_at", "2016-05-17 00:07:06.685803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:06.710416"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:07:06.689990"], ["updated_at", "2016-05-17 00:07:06.689990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:06.717853"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:07:06.724068"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:06.735701"], ["updated_at", "2016-05-17 00:07:06.735701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-17 00:07:06.738617"], ["updated_at", "2016-05-17 00:07:06.738617"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:06.741294"], ["updated_at", "2016-05-17 00:07:06.741294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:06.743150"], ["updated_at", "2016-05-17 00:07:06.743150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:07:06.752513"], ["updated_at", "2016-05-17 00:07:06.752513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:07:06.766125"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:06.775548"], ["updated_at", "2016-05-17 00:07:06.775548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [1m (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-17 00:07:06.778456"], ["updated_at", "2016-05-17 00:07:06.778456"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:06.780543"], ["updated_at", "2016-05-17 00:07:06.780543"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:06.784596"], ["updated_at", "2016-05-17 00:07:06.784596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-17 00:07:06.787610"], ["updated_at", "2016-05-17 00:07:06.787610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:07:06.789206"], ["updated_at", "2016-05-17 00:07:06.789206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-17 00:07:06.792027"], ["updated_at", "2016-05-17 00:07:06.792027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:07:06.793525"], ["updated_at", "2016-05-17 00:07:06.793525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-17 00:07:06.796893"], ["updated_at", "2016-05-17 00:07:06.796893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:07:06.800327"], ["updated_at", "2016-05-17 00:07:06.800327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:07:06.802504"], ["updated_at", "2016-05-17 00:07:06.802504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:07:06.789206"], ["updated_at", "2016-05-17 00:07:06.789206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:06.810021"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:07:06.793525"], ["updated_at", "2016-05-17 00:07:06.793525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:06.817185"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:07:06.800327"], ["updated_at", "2016-05-17 00:07:06.800327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:06.822168"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:07:06.824606"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:06.834996"], ["updated_at", "2016-05-17 00:07:06.834996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-17 00:07:06.841958"], ["updated_at", "2016-05-17 00:07:06.841958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-17 00:07:06.844596"], ["updated_at", "2016-05-17 00:07:06.844596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-17 00:07:06.849085"], ["updated_at", "2016-05-17 00:07:06.849085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-17 00:07:06.851017"], ["updated_at", "2016-05-17 00:07:06.851017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-17 00:07:06.853498"], ["updated_at", "2016-05-17 00:07:06.853498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-17 00:07:06.855118"], ["updated_at", "2016-05-17 00:07:06.855118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-17 00:07:06.858785"], ["updated_at", "2016-05-17 00:07:06.858785"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:06.860366"], ["updated_at", "2016-05-17 00:07:06.860366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-17 00:07:06.870525"], ["updated_at", "2016-05-17 00:07:06.870525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-17 00:07:06.875396"], ["updated_at", "2016-05-17 00:07:06.875396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-17 00:07:06.881742"], ["updated_at", "2016-05-17 00:07:06.881742"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:06.890968"], ["updated_at", "2016-05-17 00:07:06.890968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-17 00:07:06.893548"], ["updated_at", "2016-05-17 00:07:06.893548"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:06.896002"], ["updated_at", "2016-05-17 00:07:06.896002"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:06.899835"], ["updated_at", "2016-05-17 00:07:06.899835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-17 00:07:06.903026"], ["updated_at", "2016-05-17 00:07:06.903026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:07:06.904631"], ["updated_at", "2016-05-17 00:07:06.904631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-17 00:07:06.907285"], ["updated_at", "2016-05-17 00:07:06.907285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:07:06.908919"], ["updated_at", "2016-05-17 00:07:06.908919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-17 00:07:06.913864"], ["updated_at", "2016-05-17 00:07:06.913864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:07:06.916562"], ["updated_at", "2016-05-17 00:07:06.916562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 00:07:06.919215"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:07:06.920907"], ["updated_at", "2016-05-17 00:07:06.920907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 17c8a045-223d-4524-82b3-9657cb9e959f) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:07:06.904631"], ["updated_at", "2016-05-17 00:07:06.904631"]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:06.935895"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:07:06.908919"], ["updated_at", "2016-05-17 00:07:06.908919"]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:06.941028"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:07:06.916562"], ["updated_at", "2016-05-17 00:07:06.916562"]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:06.945645"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:07:06.950104"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [17c8a045-223d-4524-82b3-9657cb9e959f] Performed Pulitzer::CloneVersionJob from Inline(default) in 28.01ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.5ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:06.965157"], ["updated_at", "2016-05-17 00:07:06.965157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-17 00:07:06.968726"], ["updated_at", "2016-05-17 00:07:06.968726"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:06.971157"], ["updated_at", "2016-05-17 00:07:06.971157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:06.972800"], ["updated_at", "2016-05-17 00:07:06.972800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-17 00:07:06.975638"], ["updated_at", "2016-05-17 00:07:06.975638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:07:06.977172"], ["updated_at", "2016-05-17 00:07:06.977172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-17 00:07:06.981261"], ["updated_at", "2016-05-17 00:07:06.981261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:07:06.984551"], ["updated_at", "2016-05-17 00:07:06.984551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-17 00:07:06.987788"], ["updated_at", "2016-05-17 00:07:06.987788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:07:06.989553"], ["updated_at", "2016-05-17 00:07:06.989553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 00:07:06.992016"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:07:06.993792"], ["updated_at", "2016-05-17 00:07:06.993792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 8106a141-a911-43e7-bf8c-a43f2f4af640) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:07:06.977172"], ["updated_at", "2016-05-17 00:07:06.977172"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:07.005370"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:07:06.984551"], ["updated_at", "2016-05-17 00:07:06.984551"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:07.009814"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:07:06.989553"], ["updated_at", "2016-05-17 00:07:06.989553"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:07.016047"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:07:07.018600"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8106a141-a911-43e7-bf8c-a43f2f4af640] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.32ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 00:07:07.025287"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:07:07.026946"], ["updated_at", "2016-05-17 00:07:07.026946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 68b45424-d5f0-441f-a940-3a1f1fa1899c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:07:06.977172"], ["updated_at", "2016-05-17 00:07:06.977172"]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 00:07:07.037000"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:07:06.984551"], ["updated_at", "2016-05-17 00:07:06.984551"]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 00:07:07.041800"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:07:06.989553"], ["updated_at", "2016-05-17 00:07:06.989553"]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 00:07:07.047785"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:07:07.051477"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68b45424-d5f0-441f-a940-3a1f1fa1899c] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.76ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:07.066828"], ["updated_at", "2016-05-17 00:07:07.066828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-17 00:07:07.070319"], ["updated_at", "2016-05-17 00:07:07.070319"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:07.072329"], ["updated_at", "2016-05-17 00:07:07.072329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:07.074247"], ["updated_at", "2016-05-17 00:07:07.074247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-17 00:07:07.077734"], ["updated_at", "2016-05-17 00:07:07.077734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:07:07.079727"], ["updated_at", "2016-05-17 00:07:07.079727"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-17 00:07:07.084412"], ["updated_at", "2016-05-17 00:07:07.084412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:07:07.086572"], ["updated_at", "2016-05-17 00:07:07.086572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-17 00:07:07.089427"], ["updated_at", "2016-05-17 00:07:07.089427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:07:07.090876"], ["updated_at", "2016-05-17 00:07:07.090876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 00:07:07.093322"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:07:07.095110"], ["updated_at", "2016-05-17 00:07:07.095110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 60e14036-cf64-432c-b958-e233aa6944cd) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:07:07.079727"], ["updated_at", "2016-05-17 00:07:07.079727"]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:07.106909"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:07:07.086572"], ["updated_at", "2016-05-17 00:07:07.086572"]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:07.112153"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] SQL (0.8ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:07:07.090876"], ["updated_at", "2016-05-17 00:07:07.090876"]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:07:07.124993"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:07:07.129312"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [60e14036-cf64-432c-b958-e233aa6944cd] Performed Pulitzer::CloneVersionJob from Inline(default) in 37.49ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 00:07:07.140348"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-17 00:07:07.159022"], ["updated_at", "2016-05-17 00:07:07.159022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-17 00:07:07.176494"], ["updated_at", "2016-05-17 00:07:07.176494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-17 00:07:07.185401"], ["updated_at", "2016-05-17 00:07:07.185401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-17 00:07:07.193399"], ["updated_at", "2016-05-17 00:07:07.193399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.4ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 00:07:07.204044"], ["updated_at", "2016-05-17 00:07:07.204044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:07:07.207159"], ["updated_at", "2016-05-17 00:07:07.207159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (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" = 'Video' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 00:07:07.216636"], ["updated_at", "2016-05-17 00:07:07.216636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:07:07.220200"], ["updated_at", "2016-05-17 00:07:07.220200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-17 00:07:07.226370"], ["updated_at", "2016-05-17 00:07:07.226370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-17 00:07:07.232577"], ["updated_at", "2016-05-17 00:07:07.232577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-17 00:07:07.238648"], ["updated_at", "2016-05-17 00:07:07.238648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:07.393070"], ["updated_at", "2016-05-17 00:07:07.393070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]  (3.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:07.410572"], ["updated_at", "2016-05-17 00:07:07.410572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (1.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-17 00:07:07.413822"], ["updated_at", "2016-05-17 00:07:07.413822"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:07.418335"], ["updated_at", "2016-05-17 00:07:07.418335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:07.423680"], ["updated_at", "2016-05-17 00:07:07.423680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-17 00:07:07.426571"], ["updated_at", "2016-05-17 00:07:07.426571"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:07.428432"], ["updated_at", "2016-05-17 00:07:07.428432"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-17 00:07:07.432949"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-17 00:07:07.444363"], ["updated_at", "2016-05-17 00:07:07.444363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:07.450541"], ["updated_at", "2016-05-17 00:07:07.450541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-17 00:07:07.453766"], ["updated_at", "2016-05-17 00:07:07.453766"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:07.455740"], ["updated_at", "2016-05-17 00:07:07.455740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:07.457676"], ["updated_at", "2016-05-17 00:07:07.457676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:07.484314"], ["updated_at", "2016-05-17 00:07:07.484314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (1.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-17 00:07:07.487818"], ["updated_at", "2016-05-17 00:07:07.487818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-17 00:07:07.554704"], ["updated_at", "2016-05-17 00:07:07.554704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:07.569315"], ["updated_at", "2016-05-17 00:07:07.569315"]]  (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 1 [["slug", "winterfell-news-12"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-17 00:07:07.572797"], ["updated_at", "2016-05-17 00:07:07.572797"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:07.575684"], ["updated_at", "2016-05-17 00:07:07.575684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-17 00:07:07.596372"], ["updated_at", "2016-05-17 00:07:07.596372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:07:07.601084"], ["updated_at", "2016-05-17 00:07:07.601084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.5ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-17 00:07:07.605376"], ["updated_at", "2016-05-17 00:07:07.605376"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:07.618468"], ["updated_at", "2016-05-17 00:07:07.618468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:07:07.625651"], ["updated_at", "2016-05-17 00:07:07.625651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-17 00:07:07.631265"], ["updated_at", "2016-05-17 00:07:07.631265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.2ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.2ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction 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.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.7ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.7ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:10:46.742340"], ["updated_at", "2016-05-17 00:10:46.742340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (23.6ms) Completed 200 OK in 51ms (Views: 32.4ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:10:46.807467"], ["updated_at", "2016-05-17 00:10:46.807467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.4ms) Completed 200 OK in 15ms (Views: 9.1ms | ActiveRecord: 0.8ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:10:46.831242"], ["updated_at", "2016-05-17 00:10:46.831242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (7.8ms) Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:10:46.853497"], ["updated_at", "2016-05-17 00:10:46.853497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.2ms) Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:10:46.874773"], ["updated_at", "2016-05-17 00:10:46.874773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:10:46.892393"], ["updated_at", "2016-05-17 00:10:46.892393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (2.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (9.0ms) Completed 200 OK in 27ms (Views: 13.1ms | ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:10:46.936568"], ["updated_at", "2016-05-17 00:10:46.936568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::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::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (7.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (9.7ms) Completed 200 OK in 23ms (Views: 11.2ms | ActiveRecord: 1.0ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.8ms) 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_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:10:46.972387"], ["updated_at", "2016-05-17 00:10:46.972387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.2ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (13.5ms) Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.3ms)  (0.7ms) 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", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:10:47.001886"], ["updated_at", "2016-05-17 00:10:47.001886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:10:47.006828"], ["updated_at", "2016-05-17 00:10:47.006828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.0ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.034655"], ["updated_at", "2016-05-17 00:10:47.034655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-17 00:10:47.146769"], ["updated_at", "2016-05-17 00:10:47.146769"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.150112"], ["updated_at", "2016-05-17 00:10:47.150112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.152260"], ["updated_at", "2016-05-17 00:10:47.152260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-17 00:10:47.176195"], ["updated_at", "2016-05-17 00:10:47.176195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.178946"], ["updated_at", "2016-05-17 00:10:47.178946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-17 00:10:47.182049"], ["updated_at", "2016-05-17 00:10:47.182049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.183750"], ["updated_at", "2016-05-17 00:10:47.183750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-17 00:10:47.186702"], ["updated_at", "2016-05-17 00:10:47.186702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.188153"], ["updated_at", "2016-05-17 00:10:47.188153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:10:47.191745"], ["updated_at", "2016-05-17 00:10:47.191745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:10:47.178946"], ["updated_at", "2016-05-17 00:10:47.178946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.200916"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:10:47.183750"], ["updated_at", "2016-05-17 00:10:47.183750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.207306"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:10:47.188153"], ["updated_at", "2016-05-17 00:10:47.188153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.212625"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:10:47.217199"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.228134"], ["updated_at", "2016-05-17 00:10:47.228134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-17 00:10:47.231489"], ["updated_at", "2016-05-17 00:10:47.231489"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.234170"], ["updated_at", "2016-05-17 00:10:47.234170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.235967"], ["updated_at", "2016-05-17 00:10:47.235967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:10:47.242266"], ["updated_at", "2016-05-17 00:10:47.242266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:10:47.253260"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.261987"], ["updated_at", "2016-05-17 00:10:47.261987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-17 00:10:47.264678"], ["updated_at", "2016-05-17 00:10:47.264678"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.266827"], ["updated_at", "2016-05-17 00:10:47.266827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.268561"], ["updated_at", "2016-05-17 00:10:47.268561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-17 00:10:47.272094"], ["updated_at", "2016-05-17 00:10:47.272094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.273710"], ["updated_at", "2016-05-17 00:10:47.273710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-17 00:10:47.276363"], ["updated_at", "2016-05-17 00:10:47.276363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.278008"], ["updated_at", "2016-05-17 00:10:47.278008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-17 00:10:47.280695"], ["updated_at", "2016-05-17 00:10:47.280695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.282118"], ["updated_at", "2016-05-17 00:10:47.282118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:10:47.283936"], ["updated_at", "2016-05-17 00:10:47.283936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:10:47.273710"], ["updated_at", "2016-05-17 00:10:47.273710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.291567"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:10:47.278008"], ["updated_at", "2016-05-17 00:10:47.278008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.296444"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:10:47.282118"], ["updated_at", "2016-05-17 00:10:47.282118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.300817"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:10:47.303072"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.313641"], ["updated_at", "2016-05-17 00:10:47.313641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-17 00:10:47.320719"], ["updated_at", "2016-05-17 00:10:47.320719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-17 00:10:47.323506"], ["updated_at", "2016-05-17 00:10:47.323506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-17 00:10:47.326189"], ["updated_at", "2016-05-17 00:10:47.326189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-17 00:10:47.327530"], ["updated_at", "2016-05-17 00:10:47.327530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-17 00:10:47.329677"], ["updated_at", "2016-05-17 00:10:47.329677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-17 00:10:47.330893"], ["updated_at", "2016-05-17 00:10:47.330893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-17 00:10:47.334902"], ["updated_at", "2016-05-17 00:10:47.334902"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.336948"], ["updated_at", "2016-05-17 00:10:47.336948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-17 00:10:47.344270"], ["updated_at", "2016-05-17 00:10:47.344270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-17 00:10:47.349332"], ["updated_at", "2016-05-17 00:10:47.349332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-17 00:10:47.354900"], ["updated_at", "2016-05-17 00:10:47.354900"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.363524"], ["updated_at", "2016-05-17 00:10:47.363524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-17 00:10:47.366363"], ["updated_at", "2016-05-17 00:10:47.366363"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.368254"], ["updated_at", "2016-05-17 00:10:47.368254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.370585"], ["updated_at", "2016-05-17 00:10:47.370585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-17 00:10:47.373412"], ["updated_at", "2016-05-17 00:10:47.373412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.375136"], ["updated_at", "2016-05-17 00:10:47.375136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-17 00:10:47.378151"], ["updated_at", "2016-05-17 00:10:47.378151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.379826"], ["updated_at", "2016-05-17 00:10:47.379826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-17 00:10:47.382961"], ["updated_at", "2016-05-17 00:10:47.382961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.384437"], ["updated_at", "2016-05-17 00:10:47.384437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 00:10:47.387237"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:10:47.388911"], ["updated_at", "2016-05-17 00:10:47.388911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: e304e41b-895b-496b-a22f-0163e42970c3) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:10:47.375136"], ["updated_at", "2016-05-17 00:10:47.375136"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.401096"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:10:47.379826"], ["updated_at", "2016-05-17 00:10:47.379826"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.407086"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:10:47.384437"], ["updated_at", "2016-05-17 00:10:47.384437"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.411400"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:10:47.413633"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e304e41b-895b-496b-a22f-0163e42970c3] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.96ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.427383"], ["updated_at", "2016-05-17 00:10:47.427383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-17 00:10:47.430305"], ["updated_at", "2016-05-17 00:10:47.430305"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.432303"], ["updated_at", "2016-05-17 00:10:47.432303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.434266"], ["updated_at", "2016-05-17 00:10:47.434266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-17 00:10:47.436930"], ["updated_at", "2016-05-17 00:10:47.436930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.438406"], ["updated_at", "2016-05-17 00:10:47.438406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-17 00:10:47.441617"], ["updated_at", "2016-05-17 00:10:47.441617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.443188"], ["updated_at", "2016-05-17 00:10:47.443188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-17 00:10:47.445755"], ["updated_at", "2016-05-17 00:10:47.445755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.447381"], ["updated_at", "2016-05-17 00:10:47.447381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 00:10:47.449690"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:10:47.451314"], ["updated_at", "2016-05-17 00:10:47.451314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: d5993b17-74cd-40e5-ab5a-3c8dd75eec15) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:10:47.438406"], ["updated_at", "2016-05-17 00:10:47.438406"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.459712"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:10:47.443188"], ["updated_at", "2016-05-17 00:10:47.443188"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.465604"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:10:47.447381"], ["updated_at", "2016-05-17 00:10:47.447381"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.470999"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:10:47.473503"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d5993b17-74cd-40e5-ab5a-3c8dd75eec15] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.68ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 00:10:47.480710"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:10:47.482227"], ["updated_at", "2016-05-17 00:10:47.482227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 52523a08-1040-4780-a247-288c3236f3eb) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:10:47.438406"], ["updated_at", "2016-05-17 00:10:47.438406"]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 00:10:47.490842"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:10:47.443188"], ["updated_at", "2016-05-17 00:10:47.443188"]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 00:10:47.495589"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:10:47.447381"], ["updated_at", "2016-05-17 00:10:47.447381"]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 00:10:47.500904"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:10:47.503594"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [52523a08-1040-4780-a247-288c3236f3eb] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.91ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.515147"], ["updated_at", "2016-05-17 00:10:47.515147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-17 00:10:47.517787"], ["updated_at", "2016-05-17 00:10:47.517787"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.519844"], ["updated_at", "2016-05-17 00:10:47.519844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.521792"], ["updated_at", "2016-05-17 00:10:47.521792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-17 00:10:47.524360"], ["updated_at", "2016-05-17 00:10:47.524360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.526083"], ["updated_at", "2016-05-17 00:10:47.526083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-17 00:10:47.529021"], ["updated_at", "2016-05-17 00:10:47.529021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.530686"], ["updated_at", "2016-05-17 00:10:47.530686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-17 00:10:47.533715"], ["updated_at", "2016-05-17 00:10:47.533715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.535264"], ["updated_at", "2016-05-17 00:10:47.535264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 00:10:47.537294"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:10:47.538654"], ["updated_at", "2016-05-17 00:10:47.538654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6b00738c-c6e1-48a3-a576-505b8b1bb28d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:10:47.526083"], ["updated_at", "2016-05-17 00:10:47.526083"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.547191"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:10:47.530686"], ["updated_at", "2016-05-17 00:10:47.530686"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.553543"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:10:47.535264"], ["updated_at", "2016-05-17 00:10:47.535264"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:10:47.558576"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:10:47.560994"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6b00738c-c6e1-48a3-a576-505b8b1bb28d] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.85ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 00:10:47.567204"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-17 00:10:47.578396"], ["updated_at", "2016-05-17 00:10:47.578396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-17 00:10:47.589539"], ["updated_at", "2016-05-17 00:10:47.589539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-17 00:10:47.594731"], ["updated_at", "2016-05-17 00:10:47.594731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-17 00:10:47.600118"], ["updated_at", "2016-05-17 00:10:47.600118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 00:10:47.606774"], ["updated_at", "2016-05-17 00:10:47.606774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:10:47.608658"], ["updated_at", "2016-05-17 00:10:47.608658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 00:10:47.615816"], ["updated_at", "2016-05-17 00:10:47.615816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:10:47.617657"], ["updated_at", "2016-05-17 00:10:47.617657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-17 00:10:47.624402"], ["updated_at", "2016-05-17 00:10:47.624402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-17 00:10:47.629839"], ["updated_at", "2016-05-17 00:10:47.629839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-17 00:10:47.635542"], ["updated_at", "2016-05-17 00:10:47.635542"]]  (0.0ms) RELEASE SAVEPOINT active_record_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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.777973"], ["updated_at", "2016-05-17 00:10:47.777973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.793339"], ["updated_at", "2016-05-17 00:10:47.793339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-17 00:10:47.795915"], ["updated_at", "2016-05-17 00:10:47.795915"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.798017"], ["updated_at", "2016-05-17 00:10:47.798017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.802660"], ["updated_at", "2016-05-17 00:10:47.802660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-17 00:10:47.809968"], ["updated_at", "2016-05-17 00:10:47.809968"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.813809"], ["updated_at", "2016-05-17 00:10:47.813809"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-17 00:10:47.816399"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-17 00:10:47.829061"], ["updated_at", "2016-05-17 00:10:47.829061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.832890"], ["updated_at", "2016-05-17 00:10:47.832890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-17 00:10:47.836310"], ["updated_at", "2016-05-17 00:10:47.836310"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.839860"], ["updated_at", "2016-05-17 00:10:47.839860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.841746"], ["updated_at", "2016-05-17 00:10:47.841746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.872334"], ["updated_at", "2016-05-17 00:10:47.872334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-17 00:10:47.875677"], ["updated_at", "2016-05-17 00:10:47.875677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.4ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-17 00:10:47.932715"], ["updated_at", "2016-05-17 00:10:47.932715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.949386"], ["updated_at", "2016-05-17 00:10:47.949386"]]  (0.1ms) 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 1 [["slug", "winterfell-news-12"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-17 00:10:47.954341"], ["updated_at", "2016-05-17 00:10:47.954341"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.956969"], ["updated_at", "2016-05-17 00:10:47.956969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-17 00:10:47.979548"], ["updated_at", "2016-05-17 00:10:47.979548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:10:47.982876"], ["updated_at", "2016-05-17 00:10:47.982876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-17 00:10:47.986281"], ["updated_at", "2016-05-17 00:10:47.986281"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.988514"], ["updated_at", "2016-05-17 00:10:47.988514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:10:47.990265"], ["updated_at", "2016-05-17 00:10:47.990265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-17 00:10:47.992954"], ["updated_at", "2016-05-17 00:10:47.992954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.8ms) 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.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.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.7ms) 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';  (0.8ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:13:30.813154"], ["updated_at", "2016-05-17 00:13:30.813154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (6.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (24.5ms) Completed 200 OK in 53ms (Views: 32.7ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:13:30.880811"], ["updated_at", "2016-05-17 00:13:30.880811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (6.8ms) Completed 200 OK in 15ms (Views: 8.5ms | ActiveRecord: 0.8ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.8ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:13:30.905611"], ["updated_at", "2016-05-17 00:13:30.905611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (8.7ms) Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:13:30.927956"], ["updated_at", "2016-05-17 00:13:30.927956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.3ms) Completed 200 OK in 14ms (Views: 4.9ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 00:13:30.952078"], ["updated_at", "2016-05-17 00:13:30.952078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:13:30.970785"], ["updated_at", "2016-05-17 00:13:30.970785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.6ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (2.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (7.9ms) Completed 200 OK in 52ms (Views: 13.0ms | ActiveRecord: 0.9ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:13:31.037446"], ["updated_at", "2016-05-17 00:13:31.037446"]]  (6.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::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::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (8.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (15.6ms) Completed 200 OK in 29ms (Views: 17.2ms | ActiveRecord: 1.0ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:13:31.087530"], ["updated_at", "2016-05-17 00:13:31.087530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (11.3ms) Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:13:31.112257"], ["updated_at", "2016-05-17 00:13:31.112257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 00:13:31.115624"], ["updated_at", "2016-05-17 00:13:31.115624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (0.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (3.8ms) Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:31.143842"], ["updated_at", "2016-05-17 00:13:31.143842"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-17 00:13:31.254632"], ["updated_at", "2016-05-17 00:13:31.254632"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.258164"], ["updated_at", "2016-05-17 00:13:31.258164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.260460"], ["updated_at", "2016-05-17 00:13:31.260460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-17 00:13:31.282436"], ["updated_at", "2016-05-17 00:13:31.282436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.284918"], ["updated_at", "2016-05-17 00:13:31.284918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-17 00:13:31.287729"], ["updated_at", "2016-05-17 00:13:31.287729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.289190"], ["updated_at", "2016-05-17 00:13:31.289190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-17 00:13:31.292286"], ["updated_at", "2016-05-17 00:13:31.292286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.293748"], ["updated_at", "2016-05-17 00:13:31.293748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:13:31.297419"], ["updated_at", "2016-05-17 00:13:31.297419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec 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 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:13:31.284918"], ["updated_at", "2016-05-17 00:13:31.284918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.304686"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:13:31.289190"], ["updated_at", "2016-05-17 00:13:31.289190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.310235"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:13:31.293748"], ["updated_at", "2016-05-17 00:13:31.293748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.314521"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:13:31.320883"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:31.331496"], ["updated_at", "2016-05-17 00:13:31.331496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-17 00:13:31.334051"], ["updated_at", "2016-05-17 00:13:31.334051"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.336137"], ["updated_at", "2016-05-17 00:13:31.336137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.337946"], ["updated_at", "2016-05-17 00:13:31.337946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:13:31.344299"], ["updated_at", "2016-05-17 00:13:31.344299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:13:31.356796"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:31.366049"], ["updated_at", "2016-05-17 00:13:31.366049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-17 00:13:31.369539"], ["updated_at", "2016-05-17 00:13:31.369539"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.371770"], ["updated_at", "2016-05-17 00:13:31.371770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.373726"], ["updated_at", "2016-05-17 00:13:31.373726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-17 00:13:31.376645"], ["updated_at", "2016-05-17 00:13:31.376645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.378199"], ["updated_at", "2016-05-17 00:13:31.378199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-17 00:13:31.380871"], ["updated_at", "2016-05-17 00:13:31.380871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.382688"], ["updated_at", "2016-05-17 00:13:31.382688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-17 00:13:31.385534"], ["updated_at", "2016-05-17 00:13:31.385534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.386956"], ["updated_at", "2016-05-17 00:13:31.386956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:13:31.388812"], ["updated_at", "2016-05-17 00:13:31.388812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:13:31.378199"], ["updated_at", "2016-05-17 00:13:31.378199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.395082"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:13:31.382688"], ["updated_at", "2016-05-17 00:13:31.382688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.399489"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:13:31.386956"], ["updated_at", "2016-05-17 00:13:31.386956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.404454"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:13:31.406665"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:31.415977"], ["updated_at", "2016-05-17 00:13:31.415977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-17 00:13:31.424187"], ["updated_at", "2016-05-17 00:13:31.424187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-17 00:13:31.426737"], ["updated_at", "2016-05-17 00:13:31.426737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-17 00:13:31.429123"], ["updated_at", "2016-05-17 00:13:31.429123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-17 00:13:31.430393"], ["updated_at", "2016-05-17 00:13:31.430393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-17 00:13:31.433162"], ["updated_at", "2016-05-17 00:13:31.433162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-17 00:13:31.435389"], ["updated_at", "2016-05-17 00:13:31.435389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-17 00:13:31.440833"], ["updated_at", "2016-05-17 00:13:31.440833"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.442849"], ["updated_at", "2016-05-17 00:13:31.442849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-17 00:13:31.451386"], ["updated_at", "2016-05-17 00:13:31.451386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-17 00:13:31.456012"], ["updated_at", "2016-05-17 00:13:31.456012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-17 00:13:31.460363"], ["updated_at", "2016-05-17 00:13:31.460363"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:31.468194"], ["updated_at", "2016-05-17 00:13:31.468194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:31.474138"], ["updated_at", "2016-05-17 00:13:31.474138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-17 00:13:31.477564"], ["updated_at", "2016-05-17 00:13:31.477564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 2], ["created_at", "2016-05-17 00:13:31.478924"], ["updated_at", "2016-05-17 00:13:31.478924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-17 00:13:31.481061"], ["updated_at", "2016-05-17 00:13:31.481061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 2], ["created_at", "2016-05-17 00:13:31.482698"], ["updated_at", "2016-05-17 00:13:31.482698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-17 00:13:31.485258"], ["updated_at", "2016-05-17 00:13:31.485258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 2], ["created_at", "2016-05-17 00:13:31.486682"], ["updated_at", "2016-05-17 00:13:31.486682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 2]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:31.503388"], ["updated_at", "2016-05-17 00:13:31.503388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-17 00:13:31.505911"], ["updated_at", "2016-05-17 00:13:31.505911"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.508122"], ["updated_at", "2016-05-17 00:13:31.508122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.509941"], ["updated_at", "2016-05-17 00:13:31.509941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-17 00:13:31.512639"], ["updated_at", "2016-05-17 00:13:31.512639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.514110"], ["updated_at", "2016-05-17 00:13:31.514110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-17 00:13:31.517621"], ["updated_at", "2016-05-17 00:13:31.517621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.519381"], ["updated_at", "2016-05-17 00:13:31.519381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-17 00:13:31.521977"], ["updated_at", "2016-05-17 00:13:31.521977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.523401"], ["updated_at", "2016-05-17 00:13:31.523401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 00:13:31.525854"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:13:31.527535"], ["updated_at", "2016-05-17 00:13:31.527535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 03c1c05b-d9c6-4c9a-9e46-43900969709d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:13:31.514110"], ["updated_at", "2016-05-17 00:13:31.514110"]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.541274"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:13:31.519381"], ["updated_at", "2016-05-17 00:13:31.519381"]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.546293"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:13:31.523401"], ["updated_at", "2016-05-17 00:13:31.523401"]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.551770"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:13:31.554297"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [03c1c05b-d9c6-4c9a-9e46-43900969709d] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.26ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:31.568394"], ["updated_at", "2016-05-17 00:13:31.568394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-17 00:13:31.571390"], ["updated_at", "2016-05-17 00:13:31.571390"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.573523"], ["updated_at", "2016-05-17 00:13:31.573523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.575663"], ["updated_at", "2016-05-17 00:13:31.575663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-17 00:13:31.579069"], ["updated_at", "2016-05-17 00:13:31.579069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.580635"], ["updated_at", "2016-05-17 00:13:31.580635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-17 00:13:31.583118"], ["updated_at", "2016-05-17 00:13:31.583118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.584540"], ["updated_at", "2016-05-17 00:13:31.584540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-17 00:13:31.587055"], ["updated_at", "2016-05-17 00:13:31.587055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.588476"], ["updated_at", "2016-05-17 00:13:31.588476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 00:13:31.590563"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:13:31.592316"], ["updated_at", "2016-05-17 00:13:31.592316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2d405184-cf9c-4666-a890-175e0b0c2cea) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:13:31.580635"], ["updated_at", "2016-05-17 00:13:31.580635"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.600481"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:13:31.584540"], ["updated_at", "2016-05-17 00:13:31.584540"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.605898"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:13:31.588476"], ["updated_at", "2016-05-17 00:13:31.588476"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.610163"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:13:31.612416"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d405184-cf9c-4666-a890-175e0b0c2cea] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.21ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 00:13:31.619752"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:13:31.621246"], ["updated_at", "2016-05-17 00:13:31.621246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 0016d96b-b982-4c14-84a1-bf9e53d429e9) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:13:31.580635"], ["updated_at", "2016-05-17 00:13:31.580635"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 00:13:31.629540"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:13:31.584540"], ["updated_at", "2016-05-17 00:13:31.584540"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 00:13:31.634343"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:13:31.588476"], ["updated_at", "2016-05-17 00:13:31.588476"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 00:13:31.638734"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:13:31.640960"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0016d96b-b982-4c14-84a1-bf9e53d429e9] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.06ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:31.652477"], ["updated_at", "2016-05-17 00:13:31.652477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-17 00:13:31.655059"], ["updated_at", "2016-05-17 00:13:31.655059"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.656979"], ["updated_at", "2016-05-17 00:13:31.656979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.658755"], ["updated_at", "2016-05-17 00:13:31.658755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-17 00:13:31.661467"], ["updated_at", "2016-05-17 00:13:31.661467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.662959"], ["updated_at", "2016-05-17 00:13:31.662959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-17 00:13:31.666140"], ["updated_at", "2016-05-17 00:13:31.666140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.668121"], ["updated_at", "2016-05-17 00:13:31.668121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-17 00:13:31.670906"], ["updated_at", "2016-05-17 00:13:31.670906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 00:13:31.672325"], ["updated_at", "2016-05-17 00:13:31.672325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 00:13:31.674429"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 00:13:31.675836"], ["updated_at", "2016-05-17 00:13:31.675836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: cdecba8c-19b3-4b50-908a-6e45c3e2f217) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:13:31.662959"], ["updated_at", "2016-05-17 00:13:31.662959"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.685175"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 00:13:31.668121"], ["updated_at", "2016-05-17 00:13:31.668121"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.690414"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 00:13:31.672325"], ["updated_at", "2016-05-17 00:13:31.672325"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 00:13:31.695745"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 00:13:31.698212"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cdecba8c-19b3-4b50-908a-6e45c3e2f217] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.36ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 00:13:31.704869"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-17 00:13:31.716784"], ["updated_at", "2016-05-17 00:13:31.716784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-17 00:13:31.727844"], ["updated_at", "2016-05-17 00:13:31.727844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-17 00:13:31.732889"], ["updated_at", "2016-05-17 00:13:31.732889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-17 00:13:31.738118"], ["updated_at", "2016-05-17 00:13:31.738118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 00:13:31.743570"], ["updated_at", "2016-05-17 00:13:31.743570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:13:31.745346"], ["updated_at", "2016-05-17 00:13:31.745346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 00:13:31.752556"], ["updated_at", "2016-05-17 00:13:31.752556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 00:13:31.754491"], ["updated_at", "2016-05-17 00:13:31.754491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-05-17 00:13:31.760420"], ["updated_at", "2016-05-17 00:13:31.760420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-05-17 00:13:31.765070"], ["updated_at", "2016-05-17 00:13:31.765070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-17 00:13:31.770759"], ["updated_at", "2016-05-17 00:13:31.770759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:31.907363"], ["updated_at", "2016-05-17 00:13:31.907363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (2.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:31.925263"], ["updated_at", "2016-05-17 00:13:31.925263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-17 00:13:31.928576"], ["updated_at", "2016-05-17 00:13:31.928576"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.930584"], ["updated_at", "2016-05-17 00:13:31.930584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.4ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:31.941138"], ["updated_at", "2016-05-17 00:13:31.941138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-17 00:13:31.944976"], ["updated_at", "2016-05-17 00:13:31.944976"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.946848"], ["updated_at", "2016-05-17 00:13:31.946848"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-17 00:13:31.949130"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-17 00:13:31.972176"], ["updated_at", "2016-05-17 00:13:31.972176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:31.976731"], ["updated_at", "2016-05-17 00:13:31.976731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-17 00:13:31.979575"], ["updated_at", "2016-05-17 00:13:31.979575"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.981315"], ["updated_at", "2016-05-17 00:13:31.981315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:31.984779"], ["updated_at", "2016-05-17 00:13:31.984779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:32.009548"], ["updated_at", "2016-05-17 00:13:32.009548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-05-17 00:13:32.013112"], ["updated_at", "2016-05-17 00:13:32.013112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.5ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.3ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-17 00:13:32.078707"], ["updated_at", "2016-05-17 00:13:32.078707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:32.097095"], ["updated_at", "2016-05-17 00:13:32.097095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-17 00:13:32.101130"], ["updated_at", "2016-05-17 00:13:32.101130"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:32.105558"], ["updated_at", "2016-05-17 00:13:32.105558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-17 00:13:32.124117"], ["updated_at", "2016-05-17 00:13:32.124117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 00:13:32.126883"], ["updated_at", "2016-05-17 00:13:32.126883"]]  (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 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-17 00:13:32.131123"], ["updated_at", "2016-05-17 00:13:32.131123"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:32.133980"], ["updated_at", "2016-05-17 00:13:32.133980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 00:13:32.136395"], ["updated_at", "2016-05-17 00:13:32.136395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-17 00:13:32.139076"], ["updated_at", "2016-05-17 00:13:32.139076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.9ms) 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.4ms) 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.2ms) DELETE FROM "pulitzer_tags";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_tags';  (1.1ms) DELETE FROM "pulitzer_post_type_content_element_types";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_type_content_element_types';  (1.1ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (1.0ms) 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_content_elements";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements';  (1.1ms) DELETE FROM "pulitzer_post_tags";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (1.1ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (1.1ms) DELETE FROM "pulitzer_free_form_section_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_free_form_section_types';  (0.7ms) 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.1ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:53:23.250346"], ["updated_at", "2016-05-17 15:53:23.250346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (10.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (35.9ms) Completed 200 OK in 74ms (Views: 48.5ms | ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:53:23.343004"], ["updated_at", "2016-05-17 15:53:23.343004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.6ms) Completed 200 OK in 16ms (Views: 9.4ms | ActiveRecord: 0.8ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:53:23.367594"], ["updated_at", "2016-05-17 15:53:23.367594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (8.7ms) Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.2ms)  (0.7ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:53:23.392660"], ["updated_at", "2016-05-17 15:53:23.392660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.2ms) Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:53:23.414054"], ["updated_at", "2016-05-17 15:53:23.414054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:53:23.434808"], ["updated_at", "2016-05-17 15:53:23.434808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (3.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (10.1ms) Completed 200 OK in 23ms (Views: 14.5ms | ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:53:23.483775"], ["updated_at", "2016-05-17 15:53:23.483775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (4.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (9.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (12.1ms) Completed 200 OK in 26ms (Views: 13.9ms | ActiveRecord: 1.0ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:53:23.522553"], ["updated_at", "2016-05-17 15:53:23.522553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (13.1ms) Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:53:23.551810"], ["updated_at", "2016-05-17 15:53:23.551810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:53:23.556229"], ["updated_at", "2016-05-17 15:53:23.556229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.3ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:23.583667"], ["updated_at", "2016-05-17 15:53:23.583667"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-17 15:53:23.720211"], ["updated_at", "2016-05-17 15:53:23.720211"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:23.724211"], ["updated_at", "2016-05-17 15:53:23.724211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:23.726977"], ["updated_at", "2016-05-17 15:53:23.726977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-17 15:53:23.751162"], ["updated_at", "2016-05-17 15:53:23.751162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:53:23.753981"], ["updated_at", "2016-05-17 15:53:23.753981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-17 15:53:23.757410"], ["updated_at", "2016-05-17 15:53:23.757410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:53:23.759177"], ["updated_at", "2016-05-17 15:53:23.759177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-17 15:53:23.761967"], ["updated_at", "2016-05-17 15:53:23.761967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:53:23.763438"], ["updated_at", "2016-05-17 15:53:23.763438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:53:23.767285"], ["updated_at", "2016-05-17 15:53:23.767285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:53:23.753981"], ["updated_at", "2016-05-17 15:53:23.753981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:23.776432"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:53:23.759177"], ["updated_at", "2016-05-17 15:53:23.759177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:23.782653"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:53:23.763438"], ["updated_at", "2016-05-17 15:53:23.763438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:23.790630"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:53:23.798198"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:23.809650"], ["updated_at", "2016-05-17 15:53:23.809650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-17 15:53:23.812774"], ["updated_at", "2016-05-17 15:53:23.812774"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:23.815209"], ["updated_at", "2016-05-17 15:53:23.815209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:23.816931"], ["updated_at", "2016-05-17 15:53:23.816931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:53:23.822617"], ["updated_at", "2016-05-17 15:53:23.822617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:53:23.833940"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:23.843229"], ["updated_at", "2016-05-17 15:53:23.843229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-17 15:53:23.845860"], ["updated_at", "2016-05-17 15:53:23.845860"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:23.848110"], ["updated_at", "2016-05-17 15:53:23.848110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:23.849899"], ["updated_at", "2016-05-17 15:53:23.849899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-17 15:53:23.852699"], ["updated_at", "2016-05-17 15:53:23.852699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:53:23.854241"], ["updated_at", "2016-05-17 15:53:23.854241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-17 15:53:23.857833"], ["updated_at", "2016-05-17 15:53:23.857833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:53:23.860583"], ["updated_at", "2016-05-17 15:53:23.860583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-17 15:53:23.863942"], ["updated_at", "2016-05-17 15:53:23.863942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:53:23.866408"], ["updated_at", "2016-05-17 15:53:23.866408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:53:23.870571"], ["updated_at", "2016-05-17 15:53:23.870571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:53:23.854241"], ["updated_at", "2016-05-17 15:53:23.854241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:23.880641"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:53:23.860583"], ["updated_at", "2016-05-17 15:53:23.860583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:23.886198"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:53:23.866408"], ["updated_at", "2016-05-17 15:53:23.866408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:23.890657"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:53:23.893203"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:23.902818"], ["updated_at", "2016-05-17 15:53:23.902818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-17 15:53:23.910074"], ["updated_at", "2016-05-17 15:53:23.910074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-17 15:53:23.912660"], ["updated_at", "2016-05-17 15:53:23.912660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-17 15:53:23.915119"], ["updated_at", "2016-05-17 15:53:23.915119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-17 15:53:23.916650"], ["updated_at", "2016-05-17 15:53:23.916650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-17 15:53:23.919016"], ["updated_at", "2016-05-17 15:53:23.919016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-17 15:53:23.920267"], ["updated_at", "2016-05-17 15:53:23.920267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-17 15:53:23.924469"], ["updated_at", "2016-05-17 15:53:23.924469"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:23.926360"], ["updated_at", "2016-05-17 15:53:23.926360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-17 15:53:23.935810"], ["updated_at", "2016-05-17 15:53:23.935810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.5ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-17 15:53:23.943036"], ["updated_at", "2016-05-17 15:53:23.943036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-17 15:53:23.947493"], ["updated_at", "2016-05-17 15:53:23.947493"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:23.954532"], ["updated_at", "2016-05-17 15:53:23.954532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:23.970478"], ["updated_at", "2016-05-17 15:53:23.970478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-17 15:53:23.973441"], ["updated_at", "2016-05-17 15:53:23.973441"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:23.976173"], ["updated_at", "2016-05-17 15:53:23.976173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:23.978227"], ["updated_at", "2016-05-17 15:53:23.978227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-17 15:53:23.981093"], ["updated_at", "2016-05-17 15:53:23.981093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:53:23.982601"], ["updated_at", "2016-05-17 15:53:23.982601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-17 15:53:23.985187"], ["updated_at", "2016-05-17 15:53:23.985187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:53:23.987052"], ["updated_at", "2016-05-17 15:53:23.987052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-17 15:53:23.991711"], ["updated_at", "2016-05-17 15:53:23.991711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:53:23.993397"], ["updated_at", "2016-05-17 15:53:23.993397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 15:53:23.995693"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:53:23.997220"], ["updated_at", "2016-05-17 15:53:23.997220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 73c7b4c9-ae18-4f9a-b179-7400ef246a99) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:53:23.982601"], ["updated_at", "2016-05-17 15:53:23.982601"]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:24.012859"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:53:23.987052"], ["updated_at", "2016-05-17 15:53:23.987052"]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:24.017769"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:53:23.993397"], ["updated_at", "2016-05-17 15:53:23.993397"]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:24.022680"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:53:24.025906"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73c7b4c9-ae18-4f9a-b179-7400ef246a99] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.84ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:24.040684"], ["updated_at", "2016-05-17 15:53:24.040684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-17 15:53:24.043817"], ["updated_at", "2016-05-17 15:53:24.043817"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:24.046199"], ["updated_at", "2016-05-17 15:53:24.046199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:24.047963"], ["updated_at", "2016-05-17 15:53:24.047963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-17 15:53:24.050799"], ["updated_at", "2016-05-17 15:53:24.050799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:53:24.052587"], ["updated_at", "2016-05-17 15:53:24.052587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-17 15:53:24.055813"], ["updated_at", "2016-05-17 15:53:24.055813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:53:24.057769"], ["updated_at", "2016-05-17 15:53:24.057769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-17 15:53:24.061429"], ["updated_at", "2016-05-17 15:53:24.061429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:53:24.063055"], ["updated_at", "2016-05-17 15:53:24.063055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 15:53:24.065729"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:53:24.067728"], ["updated_at", "2016-05-17 15:53:24.067728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:53:24.052587"], ["updated_at", "2016-05-17 15:53:24.052587"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:24.076648"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:53:24.057769"], ["updated_at", "2016-05-17 15:53:24.057769"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:24.081531"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:53:24.063055"], ["updated_at", "2016-05-17 15:53:24.063055"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:24.086273"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:53:24.088772"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ab70f96-28ab-4b89-9d8b-d61b2dbf31a5] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.89ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 15:53:24.096242"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:53:24.097743"], ["updated_at", "2016-05-17 15:53:24.097743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: cd128268-0ce2-4f1c-88b7-fb5c9331ec8e) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:53:24.052587"], ["updated_at", "2016-05-17 15:53:24.052587"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 15:53:24.105577"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:53:24.057769"], ["updated_at", "2016-05-17 15:53:24.057769"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 15:53:24.110889"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:53:24.063055"], ["updated_at", "2016-05-17 15:53:24.063055"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 15:53:24.117969"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:53:24.121706"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd128268-0ce2-4f1c-88b7-fb5c9331ec8e] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.07ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:24.138628"], ["updated_at", "2016-05-17 15:53:24.138628"]]  (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 1 [["slug", "winterfell-news-7"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-17 15:53:24.142027"], ["updated_at", "2016-05-17 15:53:24.142027"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:24.144855"], ["updated_at", "2016-05-17 15:53:24.144855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:24.146740"], ["updated_at", "2016-05-17 15:53:24.146740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-17 15:53:24.149923"], ["updated_at", "2016-05-17 15:53:24.149923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:53:24.151878"], ["updated_at", "2016-05-17 15:53:24.151878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-17 15:53:24.154761"], ["updated_at", "2016-05-17 15:53:24.154761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:53:24.156198"], ["updated_at", "2016-05-17 15:53:24.156198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-17 15:53:24.159278"], ["updated_at", "2016-05-17 15:53:24.159278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:53:24.161064"], ["updated_at", "2016-05-17 15:53:24.161064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 15:53:24.163608"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:53:24.165239"], ["updated_at", "2016-05-17 15:53:24.165239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: cf234c4a-b9f0-4a45-90b5-d11d08f462d7) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:53:24.151878"], ["updated_at", "2016-05-17 15:53:24.151878"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:24.175196"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:53:24.156198"], ["updated_at", "2016-05-17 15:53:24.156198"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:24.180341"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:53:24.161064"], ["updated_at", "2016-05-17 15:53:24.161064"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:53:24.185112"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:53:24.187735"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf234c4a-b9f0-4a45-90b5-d11d08f462d7] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.19ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 15:53:24.196628"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-17 15:53:24.210244"], ["updated_at", "2016-05-17 15:53:24.210244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-17 15:53:24.221529"], ["updated_at", "2016-05-17 15:53:24.221529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-17 15:53:24.226661"], ["updated_at", "2016-05-17 15:53:24.226661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-17 15:53:24.232297"], ["updated_at", "2016-05-17 15:53:24.232297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 15:53:24.237733"], ["updated_at", "2016-05-17 15:53:24.237733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:53:24.239624"], ["updated_at", "2016-05-17 15:53:24.239624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 15:53:24.247114"], ["updated_at", "2016-05-17 15:53:24.247114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:53:24.248882"], ["updated_at", "2016-05-17 15:53:24.248882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-17 15:53:24.254592"], ["updated_at", "2016-05-17 15:53:24.254592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-17 15:53:24.260929"], ["updated_at", "2016-05-17 15:53:24.260929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-17 15:53:24.266444"], ["updated_at", "2016-05-17 15:53:24.266444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:24.459322"], ["updated_at", "2016-05-17 15:53:24.459322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:24.471011"], ["updated_at", "2016-05-17 15:53:24.471011"]]  (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 1 [["slug", "winterfell-news-9"]] SQL (0.8ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-17 15:53:24.474143"], ["updated_at", "2016-05-17 15:53:24.474143"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:24.479835"], ["updated_at", "2016-05-17 15:53:24.479835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:24.487573"], ["updated_at", "2016-05-17 15:53:24.487573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (1.0ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-17 15:53:24.490227"], ["updated_at", "2016-05-17 15:53:24.490227"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:24.494482"], ["updated_at", "2016-05-17 15:53:24.494482"]]  (0.1ms) 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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-17 15:53:24.497584"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-17 15:53:24.510541"], ["updated_at", "2016-05-17 15:53:24.510541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:24.515684"], ["updated_at", "2016-05-17 15:53:24.515684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-17 15:53:24.518776"], ["updated_at", "2016-05-17 15:53:24.518776"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:24.520944"], ["updated_at", "2016-05-17 15:53:24.520944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:24.522975"], ["updated_at", "2016-05-17 15:53:24.522975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:24.554911"], ["updated_at", "2016-05-17 15:53:24.554911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-17 15:53:24.558602"], ["updated_at", "2016-05-17 15:53:24.558602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.5ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-17 15:53:24.626814"], ["updated_at", "2016-05-17 15:53:24.626814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:24.641611"], ["updated_at", "2016-05-17 15:53:24.641611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-17 15:53:24.645844"], ["updated_at", "2016-05-17 15:53:24.645844"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:24.648830"], ["updated_at", "2016-05-17 15:53:24.648830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-17 15:53:24.671165"], ["updated_at", "2016-05-17 15:53:24.671165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:53:24.674909"], ["updated_at", "2016-05-17 15:53:24.674909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-17 15:53:24.678095"], ["updated_at", "2016-05-17 15:53:24.678095"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:24.680077"], ["updated_at", "2016-05-17 15:53:24.680077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:53:24.682079"], ["updated_at", "2016-05-17 15:53:24.682079"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-17 15:53:24.685568"], ["updated_at", "2016-05-17 15:53:24.685568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.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';  (0.7ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (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';  (0.9ms) 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.8ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:58:50.935152"], ["updated_at", "2016-05-17 15:58:50.935152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (24.8ms) Completed 200 OK in 54ms (Views: 34.1ms | ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:58:51.003750"], ["updated_at", "2016-05-17 15:58:51.003750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.2ms) Completed 200 OK in 15ms (Views: 9.0ms | ActiveRecord: 0.8ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:58:51.026919"], ["updated_at", "2016-05-17 15:58:51.026919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (7.9ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:58:51.048484"], ["updated_at", "2016-05-17 15:58:51.048484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.6ms) Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:58:51.068449"], ["updated_at", "2016-05-17 15:58:51.068449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:58:51.085347"], ["updated_at", "2016-05-17 15:58:51.085347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (2.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (15.2ms) Completed 200 OK in 27ms (Views: 19.0ms | ActiveRecord: 0.4ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:58:51.128630"], ["updated_at", "2016-05-17 15:58:51.128630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (7.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (9.3ms) Completed 200 OK in 21ms (Views: 10.7ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:58:51.161800"], ["updated_at", "2016-05-17 15:58:51.161800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (10.9ms) Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:58:51.187546"], ["updated_at", "2016-05-17 15:58:51.187546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:58:51.190943"], ["updated_at", "2016-05-17 15:58:51.190943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.2ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:58:51.217220"], ["updated_at", "2016-05-17 15:58:51.217220"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-17 15:58:51.326263"], ["updated_at", "2016-05-17 15:58:51.326263"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:58:51.329375"], ["updated_at", "2016-05-17 15:58:51.329375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:58:51.331674"], ["updated_at", "2016-05-17 15:58:51.331674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-17 15:58:51.355899"], ["updated_at", "2016-05-17 15:58:51.355899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:58:51.358913"], ["updated_at", "2016-05-17 15:58:51.358913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-17 15:58:51.362229"], ["updated_at", "2016-05-17 15:58:51.362229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:58:51.363979"], ["updated_at", "2016-05-17 15:58:51.363979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-17 15:58:51.366709"], ["updated_at", "2016-05-17 15:58:51.366709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:58:51.368177"], ["updated_at", "2016-05-17 15:58:51.368177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:58:51.373134"], ["updated_at", "2016-05-17 15:58:51.373134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:58:51.358913"], ["updated_at", "2016-05-17 15:58:51.358913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:58:51.380326"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:58:51.363979"], ["updated_at", "2016-05-17 15:58:51.363979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:58:51.385190"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:58:51.368177"], ["updated_at", "2016-05-17 15:58:51.368177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:58:51.389379"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:58:51.393654"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:58:51.403526"], ["updated_at", "2016-05-17 15:58:51.403526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-17 15:58:51.406602"], ["updated_at", "2016-05-17 15:58:51.406602"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:58:51.408572"], ["updated_at", "2016-05-17 15:58:51.408572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:58:51.410417"], ["updated_at", "2016-05-17 15:58:51.410417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:58:51.415999"], ["updated_at", "2016-05-17 15:58:51.415999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:58:51.427670"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:58:51.436349"], ["updated_at", "2016-05-17 15:58:51.436349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-17 15:58:51.439157"], ["updated_at", "2016-05-17 15:58:51.439157"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:58:51.441246"], ["updated_at", "2016-05-17 15:58:51.441246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:58:51.442771"], ["updated_at", "2016-05-17 15:58:51.442771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-17 15:58:51.445980"], ["updated_at", "2016-05-17 15:58:51.445980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:58:51.447644"], ["updated_at", "2016-05-17 15:58:51.447644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-17 15:58:51.450306"], ["updated_at", "2016-05-17 15:58:51.450306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:58:51.451949"], ["updated_at", "2016-05-17 15:58:51.451949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-17 15:58:51.455923"], ["updated_at", "2016-05-17 15:58:51.455923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:58:51.457511"], ["updated_at", "2016-05-17 15:58:51.457511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:58:51.459440"], ["updated_at", "2016-05-17 15:58:51.459440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:58:51.447644"], ["updated_at", "2016-05-17 15:58:51.447644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:58:51.465924"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:58:51.451949"], ["updated_at", "2016-05-17 15:58:51.451949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:58:51.471325"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:58:51.457511"], ["updated_at", "2016-05-17 15:58:51.457511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:58:51.476018"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:58:51.478293"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:58:51.488045"], ["updated_at", "2016-05-17 15:58:51.488045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-17 15:58:51.494278"], ["updated_at", "2016-05-17 15:58:51.494278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-17 15:58:51.496799"], ["updated_at", "2016-05-17 15:58:51.496799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-17 15:58:51.499676"], ["updated_at", "2016-05-17 15:58:51.499676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-17 15:58:51.501226"], ["updated_at", "2016-05-17 15:58:51.501226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-17 15:58:51.503836"], ["updated_at", "2016-05-17 15:58:51.503836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-17 15:58:51.505275"], ["updated_at", "2016-05-17 15:58:51.505275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["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.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:58:51.510743"], ["updated_at", "2016-05-17 15:58:51.510743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-17 15:58:51.513384"], ["updated_at", "2016-05-17 15:58:51.513384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-17 15:58:51.515011"], ["updated_at", "2016-05-17 15:58:51.515011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-17 15:58:51.517208"], ["updated_at", "2016-05-17 15:58:51.517208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-17 15:58:51.518942"], ["updated_at", "2016-05-17 15:58:51.518942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-17 15:58:51.522203"], ["updated_at", "2016-05-17 15:58:51.522203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-17 15:58:51.523553"], ["updated_at", "2016-05-17 15:58:51.523553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-17 15:58:51.526999"], ["updated_at", "2016-05-17 15:58:51.526999"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:58:51.528525"], ["updated_at", "2016-05-17 15:58:51.528525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-17 15:58:51.536083"], ["updated_at", "2016-05-17 15:58:51.536083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-17 15:58:51.541239"], ["updated_at", "2016-05-17 15:58:51.541239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-17 15:58:51.545267"], ["updated_at", "2016-05-17 15:58:51.545267"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:58:51.553449"], ["updated_at", "2016-05-17 15:58:51.553449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:21.799785"], ["updated_at", "2016-05-17 15:59:21.799785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-17 15:59:21.806422"], ["updated_at", "2016-05-17 15:59:21.806422"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:21.808999"], ["updated_at", "2016-05-17 15:59:21.808999"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:21.815543"], ["updated_at", "2016-05-17 15:59:21.815543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-17 15:59:21.820513"], ["updated_at", "2016-05-17 15:59:21.820513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:59:21.822357"], ["updated_at", "2016-05-17 15:59:21.822357"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-17 15:59:21.828849"], ["updated_at", "2016-05-17 15:59:21.828849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:59:21.830569"], ["updated_at", "2016-05-17 15:59:21.830569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-17 15:59:21.833239"], ["updated_at", "2016-05-17 15:59:21.833239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:59:21.834688"], ["updated_at", "2016-05-17 15:59:21.834688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 15:59:21.837511"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:59:21.839217"], ["updated_at", "2016-05-17 15:59:21.839217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2f041efa-1017-435e-a8eb-42f28d17b46c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:21.822357"], ["updated_at", "2016-05-17 15:59:21.822357"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:21.852069"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:59:21.830569"], ["updated_at", "2016-05-17 15:59:21.830569"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:21.856689"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:59:21.834688"], ["updated_at", "2016-05-17 15:59:21.834688"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:21.861535"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:59:21.863890"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2f041efa-1017-435e-a8eb-42f28d17b46c] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.23ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:21.878324"], ["updated_at", "2016-05-17 15:59:21.878324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-17 15:59:21.881278"], ["updated_at", "2016-05-17 15:59:21.881278"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:21.883751"], ["updated_at", "2016-05-17 15:59:21.883751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:21.885422"], ["updated_at", "2016-05-17 15:59:21.885422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-17 15:59:21.888103"], ["updated_at", "2016-05-17 15:59:21.888103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:59:21.889620"], ["updated_at", "2016-05-17 15:59:21.889620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-17 15:59:21.892158"], ["updated_at", "2016-05-17 15:59:21.892158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:59:21.893557"], ["updated_at", "2016-05-17 15:59:21.893557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-17 15:59:21.896936"], ["updated_at", "2016-05-17 15:59:21.896936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:59:21.898636"], ["updated_at", "2016-05-17 15:59:21.898636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 15:59:21.900754"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:59:21.902174"], ["updated_at", "2016-05-17 15:59:21.902174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 1e4d8fef-5126-4311-ab5a-4a4c8469d3cc) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:21.889620"], ["updated_at", "2016-05-17 15:59:21.889620"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:21.909905"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:59:21.893557"], ["updated_at", "2016-05-17 15:59:21.893557"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:21.915440"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:59:21.898636"], ["updated_at", "2016-05-17 15:59:21.898636"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:21.933464"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:59:21.935809"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e4d8fef-5126-4311-ab5a-4a4c8469d3cc] Performed Pulitzer::CloneVersionJob from Inline(default) in 34.82ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 15:59:21.942293"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:59:21.943833"], ["updated_at", "2016-05-17 15:59:21.943833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: fc4606bf-14e6-4554-a110-90787c9cec9a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:21.889620"], ["updated_at", "2016-05-17 15:59:21.889620"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 15:59:21.951511"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:59:21.893557"], ["updated_at", "2016-05-17 15:59:21.893557"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 15:59:21.956542"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:59:21.898636"], ["updated_at", "2016-05-17 15:59:21.898636"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 15:59:21.960860"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:59:21.963064"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc4606bf-14e6-4554-a110-90787c9cec9a] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.61ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:21.977663"], ["updated_at", "2016-05-17 15:59:21.977663"]]  (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 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-17 15:59:21.981095"], ["updated_at", "2016-05-17 15:59:21.981095"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:21.983313"], ["updated_at", "2016-05-17 15:59:21.983313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:21.985085"], ["updated_at", "2016-05-17 15:59:21.985085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-17 15:59:21.988622"], ["updated_at", "2016-05-17 15:59:21.988622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:59:21.990506"], ["updated_at", "2016-05-17 15:59:21.990506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-17 15:59:21.993698"], ["updated_at", "2016-05-17 15:59:21.993698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:59:21.995284"], ["updated_at", "2016-05-17 15:59:21.995284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-17 15:59:21.998508"], ["updated_at", "2016-05-17 15:59:21.998508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:59:22.000365"], ["updated_at", "2016-05-17 15:59:22.000365"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 15:59:22.003804"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:59:22.005378"], ["updated_at", "2016-05-17 15:59:22.005378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 46aac334-47a0-4734-8e4c-c85b1261e22a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:21.990506"], ["updated_at", "2016-05-17 15:59:21.990506"]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:22.015510"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:59:21.995284"], ["updated_at", "2016-05-17 15:59:21.995284"]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:22.019920"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:59:22.000365"], ["updated_at", "2016-05-17 15:59:22.000365"]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:22.025389"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:59:22.027855"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46aac334-47a0-4734-8e4c-c85b1261e22a] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.29ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 15:59:22.033328"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-17 15:59:22.045097"], ["updated_at", "2016-05-17 15:59:22.045097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-17 15:59:22.055902"], ["updated_at", "2016-05-17 15:59:22.055902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-17 15:59:22.060896"], ["updated_at", "2016-05-17 15:59:22.060896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-17 15:59:22.066153"], ["updated_at", "2016-05-17 15:59:22.066153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 15:59:22.071475"], ["updated_at", "2016-05-17 15:59:22.071475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:22.073082"], ["updated_at", "2016-05-17 15:59:22.073082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 15:59:22.079004"], ["updated_at", "2016-05-17 15:59:22.079004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:22.081203"], ["updated_at", "2016-05-17 15:59:22.081203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-05-17 15:59:22.086756"], ["updated_at", "2016-05-17 15:59:22.086756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-05-17 15:59:22.092969"], ["updated_at", "2016-05-17 15:59:22.092969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-17 15:59:22.098032"], ["updated_at", "2016-05-17 15:59:22.098032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:22.247417"], ["updated_at", "2016-05-17 15:59:22.247417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:22.261861"], ["updated_at", "2016-05-17 15:59:22.261861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-17 15:59:22.268192"], ["updated_at", "2016-05-17 15:59:22.268192"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:22.271464"], ["updated_at", "2016-05-17 15:59:22.271464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:22.282109"], ["updated_at", "2016-05-17 15:59:22.282109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-17 15:59:22.286552"], ["updated_at", "2016-05-17 15:59:22.286552"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:22.288915"], ["updated_at", "2016-05-17 15:59:22.288915"]]  (0.2ms) 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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-17 15:59:22.294827"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-17 15:59:22.311255"], ["updated_at", "2016-05-17 15:59:22.311255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:22.316448"], ["updated_at", "2016-05-17 15:59:22.316448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-17 15:59:22.320361"], ["updated_at", "2016-05-17 15:59:22.320361"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:22.322734"], ["updated_at", "2016-05-17 15:59:22.322734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:22.326508"], ["updated_at", "2016-05-17 15:59:22.326508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:22.352628"], ["updated_at", "2016-05-17 15:59:22.352628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-05-17 15:59:22.356129"], ["updated_at", "2016-05-17 15:59:22.356129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-17 15:59:22.414745"], ["updated_at", "2016-05-17 15:59:22.414745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:22.429477"], ["updated_at", "2016-05-17 15:59:22.429477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-17 15:59:22.432671"], ["updated_at", "2016-05-17 15:59:22.432671"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:22.434709"], ["updated_at", "2016-05-17 15:59:22.434709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.7ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-17 15:59:22.455683"], ["updated_at", "2016-05-17 15:59:22.455683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:22.460237"], ["updated_at", "2016-05-17 15:59:22.460237"]]  (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 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-17 15:59:22.463638"], ["updated_at", "2016-05-17 15:59:22.463638"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:22.465477"], ["updated_at", "2016-05-17 15:59:22.465477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:22.467044"], ["updated_at", "2016-05-17 15:59:22.467044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-17 15:59:22.469456"], ["updated_at", "2016-05-17 15:59:22.469456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.3ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.5ms) 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.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';  (0.7ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.7ms) 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.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.7ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:59:29.266980"], ["updated_at", "2016-05-17 15:59:29.266980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (26.1ms) Completed 200 OK in 55ms (Views: 35.8ms | ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:59:29.337225"], ["updated_at", "2016-05-17 15:59:29.337225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.8ms) Completed 200 OK in 17ms (Views: 9.6ms | ActiveRecord: 0.9ms) Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:59:29.363300"], ["updated_at", "2016-05-17 15:59:29.363300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (10.1ms) Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:59:29.386688"], ["updated_at", "2016-05-17 15:59:29.386688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.2ms) Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 15:59:29.407741"], ["updated_at", "2016-05-17 15:59:29.407741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:59:29.426441"], ["updated_at", "2016-05-17 15:59:29.426441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (2.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (15.7ms) Completed 200 OK in 28ms (Views: 20.0ms | ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:59:29.472312"], ["updated_at", "2016-05-17 15:59:29.472312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (2.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (7.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (9.1ms) Completed 200 OK in 21ms (Views: 10.5ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:59:29.506093"], ["updated_at", "2016-05-17 15:59:29.506093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (12.7ms) Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:59:29.534429"], ["updated_at", "2016-05-17 15:59:29.534429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 15:59:29.538258"], ["updated_at", "2016-05-17 15:59:29.538258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.5ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:29.565810"], ["updated_at", "2016-05-17 15:59:29.565810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-17 15:59:29.674894"], ["updated_at", "2016-05-17 15:59:29.674894"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:29.677848"], ["updated_at", "2016-05-17 15:59:29.677848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:29.679978"], ["updated_at", "2016-05-17 15:59:29.679978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-17 15:59:29.701538"], ["updated_at", "2016-05-17 15:59:29.701538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:59:29.703876"], ["updated_at", "2016-05-17 15:59:29.703876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-17 15:59:29.706662"], ["updated_at", "2016-05-17 15:59:29.706662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:59:29.708332"], ["updated_at", "2016-05-17 15:59:29.708332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-17 15:59:29.711464"], ["updated_at", "2016-05-17 15:59:29.711464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:59:29.713249"], ["updated_at", "2016-05-17 15:59:29.713249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:59:29.717550"], ["updated_at", "2016-05-17 15:59:29.717550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:29.703876"], ["updated_at", "2016-05-17 15:59:29.703876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:29.725201"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:59:29.708332"], ["updated_at", "2016-05-17 15:59:29.708332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:29.731785"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:59:29.713249"], ["updated_at", "2016-05-17 15:59:29.713249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:29.737613"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:59:29.742172"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:29.752778"], ["updated_at", "2016-05-17 15:59:29.752778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-17 15:59:29.755923"], ["updated_at", "2016-05-17 15:59:29.755923"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:29.757791"], ["updated_at", "2016-05-17 15:59:29.757791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:29.759936"], ["updated_at", "2016-05-17 15:59:29.759936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:59:29.765726"], ["updated_at", "2016-05-17 15:59:29.765726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:59:29.777248"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:29.786396"], ["updated_at", "2016-05-17 15:59:29.786396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-17 15:59:29.789187"], ["updated_at", "2016-05-17 15:59:29.789187"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:29.791367"], ["updated_at", "2016-05-17 15:59:29.791367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:29.793339"], ["updated_at", "2016-05-17 15:59:29.793339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-17 15:59:29.797183"], ["updated_at", "2016-05-17 15:59:29.797183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:59:29.798792"], ["updated_at", "2016-05-17 15:59:29.798792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-17 15:59:29.801859"], ["updated_at", "2016-05-17 15:59:29.801859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:59:29.803555"], ["updated_at", "2016-05-17 15:59:29.803555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-17 15:59:29.806273"], ["updated_at", "2016-05-17 15:59:29.806273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:59:29.808043"], ["updated_at", "2016-05-17 15:59:29.808043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:59:29.810387"], ["updated_at", "2016-05-17 15:59:29.810387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:29.798792"], ["updated_at", "2016-05-17 15:59:29.798792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:29.817647"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:59:29.803555"], ["updated_at", "2016-05-17 15:59:29.803555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:29.822922"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:59:29.808043"], ["updated_at", "2016-05-17 15:59:29.808043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:29.827767"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:59:29.830175"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:29.839746"], ["updated_at", "2016-05-17 15:59:29.839746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-17 15:59:29.846785"], ["updated_at", "2016-05-17 15:59:29.846785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-17 15:59:29.849376"], ["updated_at", "2016-05-17 15:59:29.849376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-17 15:59:29.851792"], ["updated_at", "2016-05-17 15:59:29.851792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-17 15:59:29.853091"], ["updated_at", "2016-05-17 15:59:29.853091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-17 15:59:29.855536"], ["updated_at", "2016-05-17 15:59:29.855536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-17 15:59:29.856878"], ["updated_at", "2016-05-17 15:59:29.856878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:29.862459"], ["updated_at", "2016-05-17 15:59:29.862459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-17 15:59:29.865586"], ["updated_at", "2016-05-17 15:59:29.865586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-17 15:59:29.867252"], ["updated_at", "2016-05-17 15:59:29.867252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-17 15:59:29.869965"], ["updated_at", "2016-05-17 15:59:29.869965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-17 15:59:29.871953"], ["updated_at", "2016-05-17 15:59:29.871953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-17 15:59:29.875140"], ["updated_at", "2016-05-17 15:59:29.875140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-17 15:59:29.876882"], ["updated_at", "2016-05-17 15:59:29.876882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-17 15:59:29.882176"], ["updated_at", "2016-05-17 15:59:29.882176"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:29.884039"], ["updated_at", "2016-05-17 15:59:29.884039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-17 15:59:29.891926"], ["updated_at", "2016-05-17 15:59:29.891926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-17 15:59:29.896565"], ["updated_at", "2016-05-17 15:59:29.896565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-17 15:59:29.901481"], ["updated_at", "2016-05-17 15:59:29.901481"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:29.909761"], ["updated_at", "2016-05-17 15:59:29.909761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-05-17 15:59:29.918242"], ["updated_at", "2016-05-17 15:59:29.918242"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:29.919980"], ["updated_at", "2016-05-17 15:59:29.919980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:29.939488"], ["updated_at", "2016-05-17 15:59:29.939488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-17 15:59:29.943097"], ["updated_at", "2016-05-17 15:59:29.943097"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:29.946064"], ["updated_at", "2016-05-17 15:59:29.946064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:29.947934"], ["updated_at", "2016-05-17 15:59:29.947934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-17 15:59:29.950876"], ["updated_at", "2016-05-17 15:59:29.950876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:59:29.952760"], ["updated_at", "2016-05-17 15:59:29.952760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-17 15:59:29.955577"], ["updated_at", "2016-05-17 15:59:29.955577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:59:29.957050"], ["updated_at", "2016-05-17 15:59:29.957050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-17 15:59:29.959662"], ["updated_at", "2016-05-17 15:59:29.959662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:59:29.962204"], ["updated_at", "2016-05-17 15:59:29.962204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 15:59:29.965576"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:59:29.967290"], ["updated_at", "2016-05-17 15:59:29.967290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6c524f22-7e6b-4f00-bfad-a6bf4ba6200a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:29.952760"], ["updated_at", "2016-05-17 15:59:29.952760"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:29.979488"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:59:29.957050"], ["updated_at", "2016-05-17 15:59:29.957050"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:29.984222"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:59:29.962204"], ["updated_at", "2016-05-17 15:59:29.962204"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:29.988955"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:59:29.991475"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6c524f22-7e6b-4f00-bfad-a6bf4ba6200a] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.45ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:30.005055"], ["updated_at", "2016-05-17 15:59:30.005055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-17 15:59:30.007909"], ["updated_at", "2016-05-17 15:59:30.007909"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:30.010429"], ["updated_at", "2016-05-17 15:59:30.010429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:30.012163"], ["updated_at", "2016-05-17 15:59:30.012163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-17 15:59:30.014688"], ["updated_at", "2016-05-17 15:59:30.014688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:59:30.016259"], ["updated_at", "2016-05-17 15:59:30.016259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-17 15:59:30.019227"], ["updated_at", "2016-05-17 15:59:30.019227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:59:30.020712"], ["updated_at", "2016-05-17 15:59:30.020712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-17 15:59:30.025106"], ["updated_at", "2016-05-17 15:59:30.025106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:59:30.027220"], ["updated_at", "2016-05-17 15:59:30.027220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 15:59:30.030405"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:59:30.032211"], ["updated_at", "2016-05-17 15:59:30.032211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: f0ccb294-dc50-4ab5-8746-50af4af7b7d6) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:30.016259"], ["updated_at", "2016-05-17 15:59:30.016259"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:30.041960"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:59:30.020712"], ["updated_at", "2016-05-17 15:59:30.020712"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:30.048169"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:59:30.027220"], ["updated_at", "2016-05-17 15:59:30.027220"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:30.053669"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:59:30.056530"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f0ccb294-dc50-4ab5-8746-50af4af7b7d6] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.21ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 15:59:30.065134"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:59:30.066836"], ["updated_at", "2016-05-17 15:59:30.066836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2879f2d7-c8e0-4c19-bd7f-261804d41dab) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:30.016259"], ["updated_at", "2016-05-17 15:59:30.016259"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 15:59:30.075633"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:59:30.020712"], ["updated_at", "2016-05-17 15:59:30.020712"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 15:59:30.082047"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:59:30.027220"], ["updated_at", "2016-05-17 15:59:30.027220"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 15:59:30.087198"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:59:30.089991"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2879f2d7-c8e0-4c19-bd7f-261804d41dab] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.5ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:30.104016"], ["updated_at", "2016-05-17 15:59:30.104016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-17 15:59:30.106597"], ["updated_at", "2016-05-17 15:59:30.106597"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:30.108388"], ["updated_at", "2016-05-17 15:59:30.108388"]]  (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", "2016-05-17 15:59:30.110471"], ["updated_at", "2016-05-17 15:59:30.110471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-17 15:59:30.114422"], ["updated_at", "2016-05-17 15:59:30.114422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 15:59:30.116272"], ["updated_at", "2016-05-17 15:59:30.116272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-17 15:59:30.119202"], ["updated_at", "2016-05-17 15:59:30.119202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 15:59:30.121870"], ["updated_at", "2016-05-17 15:59:30.121870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-17 15:59:30.125376"], ["updated_at", "2016-05-17 15:59:30.125376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 15:59:30.127395"], ["updated_at", "2016-05-17 15:59:30.127395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 15:59:30.130089"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 15:59:30.131718"], ["updated_at", "2016-05-17 15:59:30.131718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b3e0c95f-0b3f-41c9-8bb1-777bc9da9595) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:30.116272"], ["updated_at", "2016-05-17 15:59:30.116272"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:30.140571"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 15:59:30.121870"], ["updated_at", "2016-05-17 15:59:30.121870"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:30.146438"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 15:59:30.127395"], ["updated_at", "2016-05-17 15:59:30.127395"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 15:59:30.152177"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 15:59:30.154547"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b3e0c95f-0b3f-41c9-8bb1-777bc9da9595] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.12ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 15:59:30.160508"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-17 15:59:30.174701"], ["updated_at", "2016-05-17 15:59:30.174701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-17 15:59:30.185638"], ["updated_at", "2016-05-17 15:59:30.185638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-17 15:59:30.190531"], ["updated_at", "2016-05-17 15:59:30.190531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-17 15:59:30.195606"], ["updated_at", "2016-05-17 15:59:30.195606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 15:59:30.201378"], ["updated_at", "2016-05-17 15:59:30.201378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:30.203177"], ["updated_at", "2016-05-17 15:59:30.203177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 15:59:30.209929"], ["updated_at", "2016-05-17 15:59:30.209929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 15:59:30.212938"], ["updated_at", "2016-05-17 15:59:30.212938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-05-17 15:59:30.218922"], ["updated_at", "2016-05-17 15:59:30.218922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-05-17 15:59:30.224192"], ["updated_at", "2016-05-17 15:59:30.224192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-17 15:59:30.230280"], ["updated_at", "2016-05-17 15:59:30.230280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:30.366796"], ["updated_at", "2016-05-17 15:59:30.366796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:30.385427"], ["updated_at", "2016-05-17 15:59:30.385427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-17 15:59:30.388084"], ["updated_at", "2016-05-17 15:59:30.388084"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:30.390147"], ["updated_at", "2016-05-17 15:59:30.390147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:30.394579"], ["updated_at", "2016-05-17 15:59:30.394579"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-17 15:59:30.404567"], ["updated_at", "2016-05-17 15:59:30.404567"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:30.406712"], ["updated_at", "2016-05-17 15:59:30.406712"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-17 15:59:30.409069"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-17 15:59:30.433830"], ["updated_at", "2016-05-17 15:59:30.433830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:30.438280"], ["updated_at", "2016-05-17 15:59:30.438280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-17 15:59:30.441311"], ["updated_at", "2016-05-17 15:59:30.441311"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:30.443153"], ["updated_at", "2016-05-17 15:59:30.443153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:30.445383"], ["updated_at", "2016-05-17 15:59:30.445383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:30.472447"], ["updated_at", "2016-05-17 15:59:30.472447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-05-17 15:59:30.475946"], ["updated_at", "2016-05-17 15:59:30.475946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.2ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-17 15:59:30.544007"], ["updated_at", "2016-05-17 15:59:30.544007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.4ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:30.562044"], ["updated_at", "2016-05-17 15:59:30.562044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-17 15:59:30.565006"], ["updated_at", "2016-05-17 15:59:30.565006"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:30.567595"], ["updated_at", "2016-05-17 15:59:30.567595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-17 15:59:30.591478"], ["updated_at", "2016-05-17 15:59:30.591478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 15:59:30.595110"], ["updated_at", "2016-05-17 15:59:30.595110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-17 15:59:30.598658"], ["updated_at", "2016-05-17 15:59:30.598658"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:30.601116"], ["updated_at", "2016-05-17 15:59:30.601116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 15:59:30.603174"], ["updated_at", "2016-05-17 15:59:30.603174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-17 15:59:30.606804"], ["updated_at", "2016-05-17 15:59:30.606804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.4ms) 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.7ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (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.8ms) 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.6ms) 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';  (0.8ms) 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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 16:00:19.789610"], ["updated_at", "2016-05-17 16:00:19.789610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (6.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (25.4ms) Completed 200 OK in 54ms (Views: 33.8ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 16:00:19.858790"], ["updated_at", "2016-05-17 16:00:19.858790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.0ms) Completed 200 OK in 15ms (Views: 8.7ms | ActiveRecord: 0.8ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 16:00:19.883099"], ["updated_at", "2016-05-17 16:00:19.883099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (9.5ms) Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.1ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 16:00:19.906623"], ["updated_at", "2016-05-17 16:00:19.906623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.2ms) Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 16:00:19.928300"], ["updated_at", "2016-05-17 16:00:19.928300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 16:00:19.946684"], ["updated_at", "2016-05-17 16:00:19.946684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (2.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (8.9ms) Completed 200 OK in 27ms (Views: 12.5ms | ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 16:00:19.988961"], ["updated_at", "2016-05-17 16:00:19.988961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::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::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (2.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (7.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (9.6ms) Completed 200 OK in 22ms (Views: 11.2ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 16:00:20.024097"], ["updated_at", "2016-05-17 16:00:20.024097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (11.1ms) Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 16:00:20.049574"], ["updated_at", "2016-05-17 16:00:20.049574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 16:00:20.053564"], ["updated_at", "2016-05-17 16:00:20.053564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (3.9ms) Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:20.080100"], ["updated_at", "2016-05-17 16:00:20.080100"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-17 16:00:20.190347"], ["updated_at", "2016-05-17 16:00:20.190347"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:20.193475"], ["updated_at", "2016-05-17 16:00:20.193475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:20.195964"], ["updated_at", "2016-05-17 16:00:20.195964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-17 16:00:20.217028"], ["updated_at", "2016-05-17 16:00:20.217028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 16:00:20.219404"], ["updated_at", "2016-05-17 16:00:20.219404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-17 16:00:20.222997"], ["updated_at", "2016-05-17 16:00:20.222997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 16:00:20.225277"], ["updated_at", "2016-05-17 16:00:20.225277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-17 16:00:20.228475"], ["updated_at", "2016-05-17 16:00:20.228475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 16:00:20.230102"], ["updated_at", "2016-05-17 16:00:20.230102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:00:20.234163"], ["updated_at", "2016-05-17 16:00:20.234163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:00:20.219404"], ["updated_at", "2016-05-17 16:00:20.219404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:20.241736"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 16:00:20.225277"], ["updated_at", "2016-05-17 16:00:20.225277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:20.246666"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 16:00:20.230102"], ["updated_at", "2016-05-17 16:00:20.230102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:20.251500"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:00:20.255880"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:20.266268"], ["updated_at", "2016-05-17 16:00:20.266268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-17 16:00:20.268935"], ["updated_at", "2016-05-17 16:00:20.268935"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:20.270776"], ["updated_at", "2016-05-17 16:00:20.270776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:20.272896"], ["updated_at", "2016-05-17 16:00:20.272896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:00:20.279359"], ["updated_at", "2016-05-17 16:00:20.279359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:00:20.292078"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:20.302812"], ["updated_at", "2016-05-17 16:00:20.302812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-17 16:00:20.305888"], ["updated_at", "2016-05-17 16:00:20.305888"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:20.308014"], ["updated_at", "2016-05-17 16:00:20.308014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:20.309883"], ["updated_at", "2016-05-17 16:00:20.309883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-17 16:00:20.313479"], ["updated_at", "2016-05-17 16:00:20.313479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 16:00:20.314998"], ["updated_at", "2016-05-17 16:00:20.314998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-17 16:00:20.317669"], ["updated_at", "2016-05-17 16:00:20.317669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 16:00:20.319329"], ["updated_at", "2016-05-17 16:00:20.319329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-17 16:00:20.321938"], ["updated_at", "2016-05-17 16:00:20.321938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 16:00:20.323373"], ["updated_at", "2016-05-17 16:00:20.323373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:00:20.325264"], ["updated_at", "2016-05-17 16:00:20.325264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:00:20.314998"], ["updated_at", "2016-05-17 16:00:20.314998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:20.332286"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 16:00:20.319329"], ["updated_at", "2016-05-17 16:00:20.319329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:20.337504"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 16:00:20.323373"], ["updated_at", "2016-05-17 16:00:20.323373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:20.342253"], ["id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:00:20.345746"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:20.354979"], ["updated_at", "2016-05-17 16:00:20.354979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-17 16:00:20.362560"], ["updated_at", "2016-05-17 16:00:20.362560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-17 16:00:20.365457"], ["updated_at", "2016-05-17 16:00:20.365457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-17 16:00:20.367977"], ["updated_at", "2016-05-17 16:00:20.367977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-17 16:00:20.369648"], ["updated_at", "2016-05-17 16:00:20.369648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-17 16:00:20.371921"], ["updated_at", "2016-05-17 16:00:20.371921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-17 16:00:20.373196"], ["updated_at", "2016-05-17 16:00:20.373196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.8ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:41.626865"], ["updated_at", "2016-05-17 16:00:41.626865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-17 16:00:41.632134"], ["updated_at", "2016-05-17 16:00:41.632134"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-17 16:00:41.635020"], ["updated_at", "2016-05-17 16:00:41.635020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-17 16:00:41.640722"], ["updated_at", "2016-05-17 16:00:41.640722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-17 16:00:41.642345"], ["updated_at", "2016-05-17 16:00:41.642345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-17 16:00:41.645041"], ["updated_at", "2016-05-17 16:00:41.645041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-17 16:00:41.647999"], ["updated_at", "2016-05-17 16:00:41.647999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-17 16:00:41.658074"], ["updated_at", "2016-05-17 16:00:41.658074"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:41.660268"], ["updated_at", "2016-05-17 16:00:41.660268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.2ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-17 16:00:41.673931"], ["updated_at", "2016-05-17 16:00:41.673931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-17 16:00:41.680024"], ["updated_at", "2016-05-17 16:00:41.680024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-17 16:00:41.685603"], ["updated_at", "2016-05-17 16:00:41.685603"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:41.693708"], ["updated_at", "2016-05-17 16:00:41.693708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-05-17 16:00:41.701493"], ["updated_at", "2016-05-17 16:00:41.701493"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:41.703356"], ["updated_at", "2016-05-17 16:00:41.703356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:41.720737"], ["updated_at", "2016-05-17 16:00:41.720737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-17 16:00:41.723335"], ["updated_at", "2016-05-17 16:00:41.723335"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:41.725242"], ["updated_at", "2016-05-17 16:00:41.725242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:41.726983"], ["updated_at", "2016-05-17 16:00:41.726983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-17 16:00:41.731557"], ["updated_at", "2016-05-17 16:00:41.731557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 16:00:41.733286"], ["updated_at", "2016-05-17 16:00:41.733286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-17 16:00:41.736106"], ["updated_at", "2016-05-17 16:00:41.736106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 16:00:41.737690"], ["updated_at", "2016-05-17 16:00:41.737690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-17 16:00:41.740630"], ["updated_at", "2016-05-17 16:00:41.740630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 16:00:41.742221"], ["updated_at", "2016-05-17 16:00:41.742221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 16:00:41.745232"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:00:41.747173"], ["updated_at", "2016-05-17 16:00:41.747173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 35280c42-46ad-434a-bf31-c0cbddc8864a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:00:41.733286"], ["updated_at", "2016-05-17 16:00:41.733286"]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:41.758896"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 16:00:41.737690"], ["updated_at", "2016-05-17 16:00:41.737690"]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:41.764882"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 16:00:41.742221"], ["updated_at", "2016-05-17 16:00:41.742221"]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:41.769430"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:00:41.772073"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35280c42-46ad-434a-bf31-c0cbddc8864a] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.51ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:41.785053"], ["updated_at", "2016-05-17 16:00:41.785053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-17 16:00:41.788006"], ["updated_at", "2016-05-17 16:00:41.788006"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:41.789870"], ["updated_at", "2016-05-17 16:00:41.789870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:41.791904"], ["updated_at", "2016-05-17 16:00:41.791904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-17 16:00:41.794757"], ["updated_at", "2016-05-17 16:00:41.794757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 16:00:41.796655"], ["updated_at", "2016-05-17 16:00:41.796655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-17 16:00:41.799539"], ["updated_at", "2016-05-17 16:00:41.799539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 16:00:41.801096"], ["updated_at", "2016-05-17 16:00:41.801096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-17 16:00:41.803733"], ["updated_at", "2016-05-17 16:00:41.803733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 16:00:41.805243"], ["updated_at", "2016-05-17 16:00:41.805243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 16:00:41.807478"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:00:41.809082"], ["updated_at", "2016-05-17 16:00:41.809082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2ed82bc7-1b3c-4375-879f-1d9f59706c7c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:00:41.796655"], ["updated_at", "2016-05-17 16:00:41.796655"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:41.817279"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 16:00:41.801096"], ["updated_at", "2016-05-17 16:00:41.801096"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:41.823208"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 16:00:41.805243"], ["updated_at", "2016-05-17 16:00:41.805243"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:41.828089"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:00:41.832061"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ed82bc7-1b3c-4375-879f-1d9f59706c7c] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.84ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 16:00:41.839976"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:00:41.841654"], ["updated_at", "2016-05-17 16:00:41.841654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 1e5f93da-2ae6-4c70-809f-2443e97bba45) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:00:41.796655"], ["updated_at", "2016-05-17 16:00:41.796655"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 16:00:41.851383"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 16:00:41.801096"], ["updated_at", "2016-05-17 16:00:41.801096"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 16:00:41.857159"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 16:00:41.805243"], ["updated_at", "2016-05-17 16:00:41.805243"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 16:00:41.861599"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:00:41.864522"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e5f93da-2ae6-4c70-809f-2443e97bba45] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.12ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:41.876767"], ["updated_at", "2016-05-17 16:00:41.876767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-17 16:00:41.880623"], ["updated_at", "2016-05-17 16:00:41.880623"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:41.883693"], ["updated_at", "2016-05-17 16:00:41.883693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:41.885672"], ["updated_at", "2016-05-17 16:00:41.885672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-17 16:00:41.888885"], ["updated_at", "2016-05-17 16:00:41.888885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 16:00:41.890746"], ["updated_at", "2016-05-17 16:00:41.890746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-17 16:00:41.893861"], ["updated_at", "2016-05-17 16:00:41.893861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 16:00:41.895400"], ["updated_at", "2016-05-17 16:00:41.895400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-17 16:00:41.899033"], ["updated_at", "2016-05-17 16:00:41.899033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 16:00:41.900700"], ["updated_at", "2016-05-17 16:00:41.900700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 16:00:41.903458"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:00:41.904971"], ["updated_at", "2016-05-17 16:00:41.904971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 031ef3a6-54f0-4185-9bb9-c22caf20e145) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:00:41.890746"], ["updated_at", "2016-05-17 16:00:41.890746"]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:41.915312"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 16:00:41.895400"], ["updated_at", "2016-05-17 16:00:41.895400"]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:41.920275"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 16:00:41.900700"], ["updated_at", "2016-05-17 16:00:41.900700"]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:00:41.925381"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:00:41.927973"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [031ef3a6-54f0-4185-9bb9-c22caf20e145] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.83ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 16:00:41.934312"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-17 16:00:41.946515"], ["updated_at", "2016-05-17 16:00:41.946515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-17 16:00:41.957360"], ["updated_at", "2016-05-17 16:00:41.957360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-17 16:00:41.962827"], ["updated_at", "2016-05-17 16:00:41.962827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-17 16:00:41.968076"], ["updated_at", "2016-05-17 16:00:41.968076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 16:00:41.974129"], ["updated_at", "2016-05-17 16:00:41.974129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:00:41.975934"], ["updated_at", "2016-05-17 16:00:41.975934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 16:00:41.983692"], ["updated_at", "2016-05-17 16:00:41.983692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:00:41.985530"], ["updated_at", "2016-05-17 16:00:41.985530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-05-17 16:00:41.991148"], ["updated_at", "2016-05-17 16:00:41.991148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-05-17 16:00:41.996787"], ["updated_at", "2016-05-17 16:00:41.996787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-17 16:00:42.002245"], ["updated_at", "2016-05-17 16:00:42.002245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:42.141651"], ["updated_at", "2016-05-17 16:00:42.141651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:42.159045"], ["updated_at", "2016-05-17 16:00:42.159045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-17 16:00:42.163001"], ["updated_at", "2016-05-17 16:00:42.163001"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:42.168585"], ["updated_at", "2016-05-17 16:00:42.168585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:42.173319"], ["updated_at", "2016-05-17 16:00:42.173319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-17 16:00:42.175867"], ["updated_at", "2016-05-17 16:00:42.175867"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:42.177692"], ["updated_at", "2016-05-17 16:00:42.177692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.5ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-17 16:00:42.183720"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-17 16:00:42.199768"], ["updated_at", "2016-05-17 16:00:42.199768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:42.204396"], ["updated_at", "2016-05-17 16:00:42.204396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-17 16:00:42.207442"], ["updated_at", "2016-05-17 16:00:42.207442"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:42.209006"], ["updated_at", "2016-05-17 16:00:42.209006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:42.210472"], ["updated_at", "2016-05-17 16:00:42.210472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:42.234051"], ["updated_at", "2016-05-17 16:00:42.234051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-05-17 16:00:42.237356"], ["updated_at", "2016-05-17 16:00:42.237356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-17 16:00:42.277486"], ["updated_at", "2016-05-17 16:00:42.277486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:42.293600"], ["updated_at", "2016-05-17 16:00:42.293600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-17 16:00:42.297400"], ["updated_at", "2016-05-17 16:00:42.297400"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:42.302628"], ["updated_at", "2016-05-17 16:00:42.302628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-17 16:00:42.336221"], ["updated_at", "2016-05-17 16:00:42.336221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:00:42.338638"], ["updated_at", "2016-05-17 16:00:42.338638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-17 16:00:42.341166"], ["updated_at", "2016-05-17 16:00:42.341166"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:42.343032"], ["updated_at", "2016-05-17 16:00:42.343032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:00:42.344669"], ["updated_at", "2016-05-17 16:00:42.344669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-17 16:00:42.348837"], ["updated_at", "2016-05-17 16:00:42.348837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction 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';  (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 "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.8ms) 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.8ms) 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';  (0.8ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 16:03:01.377476"], ["updated_at", "2016-05-17 16:03:01.377476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (23.7ms) Completed 200 OK in 52ms (Views: 32.5ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 16:03:01.443239"], ["updated_at", "2016-05-17 16:03:01.443239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.6ms) Completed 200 OK in 16ms (Views: 9.5ms | ActiveRecord: 1.0ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 16:03:01.468586"], ["updated_at", "2016-05-17 16:03:01.468586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (9.3ms) Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.1ms)  (0.7ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 16:03:01.492003"], ["updated_at", "2016-05-17 16:03:01.492003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.7ms) Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-17 16:03:01.511231"], ["updated_at", "2016-05-17 16:03:01.511231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 16:03:01.528299"], ["updated_at", "2016-05-17 16:03:01.528299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (2.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (15.2ms) Completed 200 OK in 27ms (Views: 19.3ms | ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 16:03:01.571182"], ["updated_at", "2016-05-17 16:03:01.571182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (8.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (10.4ms) Completed 200 OK in 24ms (Views: 12.0ms | ActiveRecord: 1.2ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 16:03:01.607438"], ["updated_at", "2016-05-17 16:03:01.607438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.5ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_fields.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (11.4ms) Completed 200 OK in 15ms (Views: 13.0ms | ActiveRecord: 0.7ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 16:03:01.634058"], ["updated_at", "2016-05-17 16:03:01.634058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-17 16:03:01.637586"], ["updated_at", "2016-05-17 16:03:01.637586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.2ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:01.663035"], ["updated_at", "2016-05-17 16:03:01.663035"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-17 16:03:01.775817"], ["updated_at", "2016-05-17 16:03:01.775817"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:01.778812"], ["updated_at", "2016-05-17 16:03:01.778812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:01.780877"], ["updated_at", "2016-05-17 16:03:01.780877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-17 16:03:01.803526"], ["updated_at", "2016-05-17 16:03:01.803526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 16:03:01.806298"], ["updated_at", "2016-05-17 16:03:01.806298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-17 16:03:01.809561"], ["updated_at", "2016-05-17 16:03:01.809561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 16:03:01.811153"], ["updated_at", "2016-05-17 16:03:01.811153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-17 16:03:01.813753"], ["updated_at", "2016-05-17 16:03:01.813753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 16:03:01.815179"], ["updated_at", "2016-05-17 16:03:01.815179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:03:01.819467"], ["updated_at", "2016-05-17 16:03:01.819467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:03:01.806298"], ["updated_at", "2016-05-17 16:03:01.806298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:01.826502"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 16:03:01.811153"], ["updated_at", "2016-05-17 16:03:01.811153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:01.831330"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 16:03:01.815179"], ["updated_at", "2016-05-17 16:03:01.815179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:01.835973"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:03:01.840124"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:01.851222"], ["updated_at", "2016-05-17 16:03:01.851222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-17 16:03:01.854251"], ["updated_at", "2016-05-17 16:03:01.854251"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:01.856578"], ["updated_at", "2016-05-17 16:03:01.856578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:01.858273"], ["updated_at", "2016-05-17 16:03:01.858273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:03:01.864771"], ["updated_at", "2016-05-17 16:03:01.864771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:03:01.876754"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.6ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:01.886036"], ["updated_at", "2016-05-17 16:03:01.886036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-17 16:03:01.888875"], ["updated_at", "2016-05-17 16:03:01.888875"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:01.890705"], ["updated_at", "2016-05-17 16:03:01.890705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:01.892250"], ["updated_at", "2016-05-17 16:03:01.892250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-17 16:03:01.895195"], ["updated_at", "2016-05-17 16:03:01.895195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 16:03:01.896780"], ["updated_at", "2016-05-17 16:03:01.896780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-17 16:03:01.900705"], ["updated_at", "2016-05-17 16:03:01.900705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 16:03:01.902494"], ["updated_at", "2016-05-17 16:03:01.902494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-17 16:03:01.905245"], ["updated_at", "2016-05-17 16:03:01.905245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 16:03:01.906645"], ["updated_at", "2016-05-17 16:03:01.906645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:03:01.908484"], ["updated_at", "2016-05-17 16:03:01.908484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:03:01.896780"], ["updated_at", "2016-05-17 16:03:01.896780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:01.914974"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 16:03:01.902494"], ["updated_at", "2016-05-17 16:03:01.902494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:01.920212"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 16:03:01.906645"], ["updated_at", "2016-05-17 16:03:01.906645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:01.925002"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:03:01.927538"], ["id", 3]]  (0.1ms) 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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:01.937514"], ["updated_at", "2016-05-17 16:03:01.937514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-17 16:03:01.944186"], ["updated_at", "2016-05-17 16:03:01.944186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-17 16:03:01.946845"], ["updated_at", "2016-05-17 16:03:01.946845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-17 16:03:01.949625"], ["updated_at", "2016-05-17 16:03:01.949625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-17 16:03:01.951254"], ["updated_at", "2016-05-17 16:03:01.951254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-17 16:03:01.953622"], ["updated_at", "2016-05-17 16:03:01.953622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-17 16:03:01.954902"], ["updated_at", "2016-05-17 16:03:01.954902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-17 16:03:01.966549"], ["updated_at", "2016-05-17 16:03:01.966549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-17 16:03:01.970187"], ["updated_at", "2016-05-17 16:03:01.970187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-17 16:03:01.974420"], ["updated_at", "2016-05-17 16:03:01.974420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:01.979430"], ["updated_at", "2016-05-17 16:03:01.979430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-17 16:03:01.982457"], ["updated_at", "2016-05-17 16:03:01.982457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-17 16:03:01.985037"], ["updated_at", "2016-05-17 16:03:01.985037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-17 16:03:01.987766"], ["updated_at", "2016-05-17 16:03:01.987766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-17 16:03:01.989120"], ["updated_at", "2016-05-17 16:03:01.989120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-17 16:03:01.991298"], ["updated_at", "2016-05-17 16:03:01.991298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-17 16:03:01.992822"], ["updated_at", "2016-05-17 16:03:01.992822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-17 16:03:01.996910"], ["updated_at", "2016-05-17 16:03:01.996910"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:01.998751"], ["updated_at", "2016-05-17 16:03:01.998751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-17 16:03:02.006835"], ["updated_at", "2016-05-17 16:03:02.006835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-17 16:03:02.010926"], ["updated_at", "2016-05-17 16:03:02.010926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-17 16:03:02.016107"], ["updated_at", "2016-05-17 16:03:02.016107"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:02.023964"], ["updated_at", "2016-05-17 16:03:02.023964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.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 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-05-17 16:03:02.031423"], ["updated_at", "2016-05-17 16:03:02.031423"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.033236"], ["updated_at", "2016-05-17 16:03:02.033236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:02.050196"], ["updated_at", "2016-05-17 16:03:02.050196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-17 16:03:02.053135"], ["updated_at", "2016-05-17 16:03:02.053135"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.055358"], ["updated_at", "2016-05-17 16:03:02.055358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.058097"], ["updated_at", "2016-05-17 16:03:02.058097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-17 16:03:02.061040"], ["updated_at", "2016-05-17 16:03:02.061040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 16:03:02.062777"], ["updated_at", "2016-05-17 16:03:02.062777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-17 16:03:02.065471"], ["updated_at", "2016-05-17 16:03:02.065471"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 16:03:02.067886"], ["updated_at", "2016-05-17 16:03:02.067886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-17 16:03:02.070727"], ["updated_at", "2016-05-17 16:03:02.070727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 16:03:02.072155"], ["updated_at", "2016-05-17 16:03:02.072155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 16:03:02.074770"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:03:02.076263"], ["updated_at", "2016-05-17 16:03:02.076263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 88f495d1-8aa2-4e87-be51-e3e574af43d8) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:03:02.062777"], ["updated_at", "2016-05-17 16:03:02.062777"]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:02.087310"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 16:03:02.067886"], ["updated_at", "2016-05-17 16:03:02.067886"]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:02.091731"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 16:03:02.072155"], ["updated_at", "2016-05-17 16:03:02.072155"]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:02.095944"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:03:02.098694"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [88f495d1-8aa2-4e87-be51-e3e574af43d8] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.65ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:02.111050"], ["updated_at", "2016-05-17 16:03:02.111050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-17 16:03:02.113638"], ["updated_at", "2016-05-17 16:03:02.113638"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.115462"], ["updated_at", "2016-05-17 16:03:02.115462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.118204"], ["updated_at", "2016-05-17 16:03:02.118204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-17 16:03:02.121206"], ["updated_at", "2016-05-17 16:03:02.121206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 16:03:02.122791"], ["updated_at", "2016-05-17 16:03:02.122791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-17 16:03:02.125298"], ["updated_at", "2016-05-17 16:03:02.125298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 16:03:02.126677"], ["updated_at", "2016-05-17 16:03:02.126677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-17 16:03:02.130165"], ["updated_at", "2016-05-17 16:03:02.130165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 16:03:02.132077"], ["updated_at", "2016-05-17 16:03:02.132077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 16:03:02.135341"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:03:02.136996"], ["updated_at", "2016-05-17 16:03:02.136996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: bd1f2d01-7d9f-4147-9bef-9b1570f5fafa) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:03:02.122791"], ["updated_at", "2016-05-17 16:03:02.122791"]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:02.146577"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 16:03:02.126677"], ["updated_at", "2016-05-17 16:03:02.126677"]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:02.152620"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 16:03:02.132077"], ["updated_at", "2016-05-17 16:03:02.132077"]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:02.158285"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:03:02.161130"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd1f2d01-7d9f-4147-9bef-9b1570f5fafa] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.38ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 16:03:02.168182"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:03:02.169794"], ["updated_at", "2016-05-17 16:03:02.169794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: a8b6a04b-40c1-4895-af81-910df4df823e) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:03:02.122791"], ["updated_at", "2016-05-17 16:03:02.122791"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 16:03:02.177420"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 16:03:02.126677"], ["updated_at", "2016-05-17 16:03:02.126677"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 16:03:02.182325"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 16:03:02.132077"], ["updated_at", "2016-05-17 16:03:02.132077"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-17 16:03:02.187197"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:03:02.189747"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a8b6a04b-40c1-4895-af81-910df4df823e] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.38ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:02.202168"], ["updated_at", "2016-05-17 16:03:02.202168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-17 16:03:02.204772"], ["updated_at", "2016-05-17 16:03:02.204772"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.206611"], ["updated_at", "2016-05-17 16:03:02.206611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.208920"], ["updated_at", "2016-05-17 16:03:02.208920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-17 16:03:02.213078"], ["updated_at", "2016-05-17 16:03:02.213078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-17 16:03:02.214925"], ["updated_at", "2016-05-17 16:03:02.214925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-17 16:03:02.218032"], ["updated_at", "2016-05-17 16:03:02.218032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-17 16:03:02.219631"], ["updated_at", "2016-05-17 16:03:02.219631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-17 16:03:02.222753"], ["updated_at", "2016-05-17 16:03:02.222753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-17 16:03:02.224472"], ["updated_at", "2016-05-17 16:03:02.224472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-17 16:03:02.226865"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-17 16:03:02.228301"], ["updated_at", "2016-05-17 16:03:02.228301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 9ae4f0df-dbcc-423e-9c3d-cf1a603d01af) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:03:02.214925"], ["updated_at", "2016-05-17 16:03:02.214925"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:02.237183"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-17 16:03:02.219631"], ["updated_at", "2016-05-17 16:03:02.219631"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:02.241714"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-17 16:03:02.224472"], ["updated_at", "2016-05-17 16:03:02.224472"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-17 16:03:02.245969"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] SQL (0.3ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-17 16:03:02.248713"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ae4f0df-dbcc-423e-9c3d-cf1a603d01af] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.41ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-17 16:03:02.255911"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-17 16:03:02.267538"], ["updated_at", "2016-05-17 16:03:02.267538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-17 16:03:02.278253"], ["updated_at", "2016-05-17 16:03:02.278253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-17 16:03:02.283375"], ["updated_at", "2016-05-17 16:03:02.283375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-17 16:03:02.288738"], ["updated_at", "2016-05-17 16:03:02.288738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 16:03:02.294366"], ["updated_at", "2016-05-17 16:03:02.294366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:03:02.296510"], ["updated_at", "2016-05-17 16:03:02.296510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-17 16:03:02.302871"], ["updated_at", "2016-05-17 16:03:02.302871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-17 16:03:02.304535"], ["updated_at", "2016-05-17 16:03:02.304535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-05-17 16:03:02.310002"], ["updated_at", "2016-05-17 16:03:02.310002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-05-17 16:03:02.315289"], ["updated_at", "2016-05-17 16:03:02.315289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-17 16:03:02.321397"], ["updated_at", "2016-05-17 16:03:02.321397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:02.459434"], ["updated_at", "2016-05-17 16:03:02.459434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:02.489082"], ["updated_at", "2016-05-17 16:03:02.489082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-17 16:03:02.494801"], ["updated_at", "2016-05-17 16:03:02.494801"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.497472"], ["updated_at", "2016-05-17 16:03:02.497472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:02.503111"], ["updated_at", "2016-05-17 16:03:02.503111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-17 16:03:02.506097"], ["updated_at", "2016-05-17 16:03:02.506097"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.508887"], ["updated_at", "2016-05-17 16:03:02.508887"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-17 16:03:02.511685"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-17 16:03:02.526215"], ["updated_at", "2016-05-17 16:03:02.526215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:02.531741"], ["updated_at", "2016-05-17 16:03:02.531741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-17 16:03:02.535223"], ["updated_at", "2016-05-17 16:03:02.535223"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.537157"], ["updated_at", "2016-05-17 16:03:02.537157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.539291"], ["updated_at", "2016-05-17 16:03:02.539291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:02.565746"], ["updated_at", "2016-05-17 16:03:02.565746"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-05-17 16:03:02.571831"], ["updated_at", "2016-05-17 16:03:02.571831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-17 16:03:02.629989"], ["updated_at", "2016-05-17 16:03:02.629989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:02.647773"], ["updated_at", "2016-05-17 16:03:02.647773"]]  (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 1 [["slug", "winterfell-news-12"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-17 16:03:02.652636"], ["updated_at", "2016-05-17 16:03:02.652636"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.654856"], ["updated_at", "2016-05-17 16:03:02.654856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-17 16:03:02.676799"], ["updated_at", "2016-05-17 16:03:02.676799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-17 16:03:02.680111"], ["updated_at", "2016-05-17 16:03:02.680111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-17 16:03:02.682790"], ["updated_at", "2016-05-17 16:03:02.682790"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.684897"], ["updated_at", "2016-05-17 16:03:02.684897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-17 16:03:02.686563"], ["updated_at", "2016-05-17 16:03:02.686563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-17 16:03:02.689183"], ["updated_at", "2016-05-17 16:03:02.689183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)  (0.8ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.9ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  (0.8ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer)   (0.8ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar)   (0.8ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)  (1.0ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)   (1.2ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (0.9ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.8ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160516150237')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150901153531') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_post_types" already exists: CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) rollback transaction  (2.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.2ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618224344"]]  (0.8ms) commit transaction Migrating to CreatePulitzerContentElementTypes (20150618225402)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618225402"]]  (0.7ms) commit transaction Migrating to CreatePulitzerPosts (20150619204615)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204615"]]  (0.7ms) commit transaction Migrating to CreatePulitzerContentElements (20150619204708)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "post_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204708"]]  (0.8ms) commit transaction Migrating to CreatePulitzerTags (20150619213436)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213436"]]  (0.7ms) commit transaction Migrating to CreatePulitzerPostTags (20150619213457)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213457"]]  (0.8ms) commit transaction Migrating to CreatePulitzerPostTypeContentElementTypes (20150619215914)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619215914"]]  (0.7ms) commit transaction Migrating to AddPluralAndTemplateToPulitzerPostTypes (20150629195832)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_post_types" ADD "plural" boolean  (0.2ms) ALTER TABLE "pulitzer_post_types" ADD "template" boolean SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150629195832"]]  (0.7ms) commit transaction Migrating to AddPulitzerContentElementTypes (20150702150819)  (0.1ms) begin transaction Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", "2016-05-18 21:30:45.476754"], ["updated_at", "2016-05-18 21:30:45.476754"]] Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-18 21:30:45.478733"], ["updated_at", "2016-05-18 21:30:45.478733"]] Pulitzer::ContentElementType Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-18 21:30:45.480933"], ["updated_at", "2016-05-18 21:30:45.480933"]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150702150819"]]  (0.8ms) commit transaction Migrating to AddSlugToPulitzerPosts (20150724150230)  (0.1ms) begin transaction  (3.0ms) ALTER TABLE "pulitzer_posts" ADD "slug" varchar  (0.8ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150724150230"]]  (1.7ms) commit transaction Migrating to CreateSearchLocations (20150901153531)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150901153531"]]  (1.0ms) commit transaction Migrating to ChangeLabelTypeFromPulitzerPostTags (20150902212741)  (0.1ms) begin transaction  (0.8ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_post_tags"  (0.4ms) DROP TABLE "pulitzer_post_tags"  (0.2ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "apulitzer_post_tags"  (0.6ms) DROP TABLE "apulitzer_post_tags" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150902212741"]]  (3.3ms) commit transaction Migrating to AddTextEditorToPulitzerPostTypeContentElementTypes (20151026180630)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_post_type_content_element_types" ADD "text_editor" varchar SQL (0.4ms) UPDATE "pulitzer_post_type_content_element_types" SET "text_editor" = 'None' WHERE "pulitzer_post_type_content_element_types"."id" IN (SELECT "pulitzer_post_type_content_element_types"."id" FROM "pulitzer_post_type_content_element_types" ORDER BY "pulitzer_post_type_content_element_types"."id" ASC) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151026180630"]]  (0.7ms) commit transaction Migrating to CreatePulitzerVersions (20151029194354)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029194354"]]  (0.9ms) commit transaction Migrating to ChangePostElementsToVersions (20151029220558)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_content_elements"  (0.2ms) DROP TABLE "pulitzer_content_elements"  (0.1ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "apulitzer_content_elements"  (0.1ms) DROP TABLE "apulitzer_content_elements"  (0.1ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "pulitzer_post_tags"  (0.4ms) DROP TABLE "pulitzer_post_tags"  (0.1ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "apulitzer_post_tags"  (0.2ms) DROP TABLE "apulitzer_post_tags" Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" ORDER BY "pulitzer_posts"."id" ASC LIMIT 1000 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029220558"]]  (0.9ms) commit transaction Migrating to AddPostTypeContentElementAttributesToContentElements (20151113183344)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_content_elements" ADD "text_editor" varchar  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "height" integer DEFAULT 100  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "width" integer DEFAULT 100  (0.1ms) ALTER TABLE "pulitzer_content_elements" ADD "sort_order" integer Scoped order and limit are ignored, it's forced to be batch order and batch size Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1000 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151113183344"]]  (0.8ms) commit transaction Migrating to ChangeTemplateToPulitzerPostTypes (20151116162508)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "template" boolean)   (0.1ms) SELECT * FROM "pulitzer_post_types"  (0.3ms) DROP TABLE "pulitzer_post_types"  (0.1ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean)  (0.0ms) SELECT * FROM "apulitzer_post_types"  (0.1ms) DROP TABLE "apulitzer_post_types"  (0.2ms) ALTER TABLE "pulitzer_post_types" ADD "kind" integer DEFAULT 0 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151116162508"]]  (0.8ms) commit transaction Migrating to AddKindToPulitzerContentElements (20151118031237)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_content_elements" ADD "kind" integer DEFAULT 0 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151118031237"]]  (0.7ms) commit transaction Migrating to AddErrorsToVersion (20160122204201)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_versions" ADD "cloning_errors" jsonb SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160122204201"]]  (0.7ms) commit transaction Migrating to CreatePartials (20160511192041)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160511192041"]]  (0.7ms) commit transaction Migrating to AddPartialToContentElement (20160512214545)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_content_elements" ADD "partial_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160512214545"]]  (0.7ms) commit transaction Migrating to CreateFreeFormSectionType (20160513153209)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160513153209"]]  (0.7ms) commit transaction Migrating to CreateFreeFormSection (20160513153214)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160513153214"]]  (0.8ms) commit transaction Migrating to FixPostTypeKinds (20160516150237)  (0.0ms) begin transaction Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" IN (1, 2) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160516150237"]]  (0.7ms) commit transaction Migrating to CreateLayouts (20160517181706)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_layouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160517181706"]]  (0.7ms) commit transaction Migrating to AddLayoutToPartial (20160517182500)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_partials" ADD "layout_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160517182500"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_pulitzer_posts_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_posts_on_slug' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.9ms) DELETE FROM "pulitzer_content_element_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (0.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';  (0.7ms) 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';  (0.7ms) DELETE FROM "search_locations";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (0.8ms) 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.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.6ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-18 21:30:58.137706"], ["updated_at", "2016-05-18 21:30:58.137706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (8.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (33.9ms) Completed 200 OK in 72ms (Views: 46.0ms | ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-18 21:30:58.225869"], ["updated_at", "2016-05-18 21:30:58.225869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (6.2ms) Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 0.8ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-18 21:30:58.248222"], ["updated_at", "2016-05-18 21:30:58.248222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (10.1ms) Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-18 21:30:58.270263"], ["updated_at", "2016-05-18 21:30:58.270263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.1ms) Completed 200 OK in 9ms (Views: 4.5ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-18 21:30:58.289197"], ["updated_at", "2016-05-18 21:30:58.289197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.1ms) Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-18 21:30:58.308529"], ["updated_at", "2016-05-18 21:30:58.308529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.4ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (12.5ms) Completed 200 OK in 31ms (Views: 16.0ms | ActiveRecord: 0.8ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-18 21:30:58.355284"], ["updated_at", "2016-05-18 21:30:58.355284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.2ms) 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::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (9.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (11.8ms) Completed 200 OK in 24ms (Views: 13.6ms | ActiveRecord: 1.0ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-18 21:30:58.391678"], ["updated_at", "2016-05-18 21:30:58.391678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (9.9ms) Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-18 21:30:58.415716"], ["updated_at", "2016-05-18 21:30:58.415716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-18 21:30:58.419165"], ["updated_at", "2016-05-18 21:30:58.419165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.9ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:58.446193"], ["updated_at", "2016-05-18 21:30:58.446193"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-18 21:30:58.570065"], ["updated_at", "2016-05-18 21:30:58.570065"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.573267"], ["updated_at", "2016-05-18 21:30:58.573267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.575605"], ["updated_at", "2016-05-18 21:30:58.575605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-18 21:30:58.587272"], ["updated_at", "2016-05-18 21:30:58.587272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-18 21:30:58.589570"], ["updated_at", "2016-05-18 21:30:58.589570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-18 21:30:58.592387"], ["updated_at", "2016-05-18 21:30:58.592387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-18 21:30:58.593816"], ["updated_at", "2016-05-18 21:30:58.593816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-18 21:30:58.596346"], ["updated_at", "2016-05-18 21:30:58.596346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-18 21:30:58.597824"], ["updated_at", "2016-05-18 21:30:58.597824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-18 21:30:58.601357"], ["updated_at", "2016-05-18 21:30:58.601357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-18 21:30:58.589570"], ["updated_at", "2016-05-18 21:30:58.589570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:58.609210"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-18 21:30:58.593816"], ["updated_at", "2016-05-18 21:30:58.593816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:58.614346"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-18 21:30:58.597824"], ["updated_at", "2016-05-18 21:30:58.597824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:58.618784"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-18 21:30:58.622929"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:58.633009"], ["updated_at", "2016-05-18 21:30:58.633009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-18 21:30:58.635531"], ["updated_at", "2016-05-18 21:30:58.635531"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.637379"], ["updated_at", "2016-05-18 21:30:58.637379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.639697"], ["updated_at", "2016-05-18 21:30:58.639697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-18 21:30:58.646963"], ["updated_at", "2016-05-18 21:30:58.646963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-18 21:30:58.657837"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:58.667759"], ["updated_at", "2016-05-18 21:30:58.667759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-18 21:30:58.670945"], ["updated_at", "2016-05-18 21:30:58.670945"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.673091"], ["updated_at", "2016-05-18 21:30:58.673091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.674911"], ["updated_at", "2016-05-18 21:30:58.674911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-18 21:30:58.677818"], ["updated_at", "2016-05-18 21:30:58.677818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-18 21:30:58.679544"], ["updated_at", "2016-05-18 21:30:58.679544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-18 21:30:58.683443"], ["updated_at", "2016-05-18 21:30:58.683443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-18 21:30:58.684906"], ["updated_at", "2016-05-18 21:30:58.684906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-18 21:30:58.687447"], ["updated_at", "2016-05-18 21:30:58.687447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-18 21:30:58.688883"], ["updated_at", "2016-05-18 21:30:58.688883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-18 21:30:58.690693"], ["updated_at", "2016-05-18 21:30:58.690693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-18 21:30:58.679544"], ["updated_at", "2016-05-18 21:30:58.679544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:58.697690"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-18 21:30:58.684906"], ["updated_at", "2016-05-18 21:30:58.684906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:58.703323"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-18 21:30:58.688883"], ["updated_at", "2016-05-18 21:30:58.688883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:58.708279"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-18 21:30:58.710530"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:58.721237"], ["updated_at", "2016-05-18 21:30:58.721237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-18 21:30:58.727954"], ["updated_at", "2016-05-18 21:30:58.727954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-18 21:30:58.730561"], ["updated_at", "2016-05-18 21:30:58.730561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-18 21:30:58.733698"], ["updated_at", "2016-05-18 21:30:58.733698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-18 21:30:58.735366"], ["updated_at", "2016-05-18 21:30:58.735366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-18 21:30:58.737962"], ["updated_at", "2016-05-18 21:30:58.737962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-18 21:30:58.739389"], ["updated_at", "2016-05-18 21:30:58.739389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-18 21:30:58.752210"], ["updated_at", "2016-05-18 21:30:58.752210"]]  (0.0ms) RELEASE SAVEPOINT active_record_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 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-18 21:30:58.756692"], ["updated_at", "2016-05-18 21:30:58.756692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-18 21:30:58.759983"], ["updated_at", "2016-05-18 21:30:58.759983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:58.765934"], ["updated_at", "2016-05-18 21:30:58.765934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-18 21:30:58.768834"], ["updated_at", "2016-05-18 21:30:58.768834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-18 21:30:58.770541"], ["updated_at", "2016-05-18 21:30:58.770541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-18 21:30:58.773283"], ["updated_at", "2016-05-18 21:30:58.773283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-18 21:30:58.774667"], ["updated_at", "2016-05-18 21:30:58.774667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-18 21:30:58.776946"], ["updated_at", "2016-05-18 21:30:58.776946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-18 21:30:58.778256"], ["updated_at", "2016-05-18 21:30:58.778256"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-18 21:30:58.782597"], ["updated_at", "2016-05-18 21:30:58.782597"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.784210"], ["updated_at", "2016-05-18 21:30:58.784210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-18 21:30:58.790574"], ["updated_at", "2016-05-18 21:30:58.790574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-18 21:30:58.794764"], ["updated_at", "2016-05-18 21:30:58.794764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-18 21:30:58.800487"], ["updated_at", "2016-05-18 21:30:58.800487"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:58.808001"], ["updated_at", "2016-05-18 21:30:58.808001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-05-18 21:30:58.816340"], ["updated_at", "2016-05-18 21:30:58.816340"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.817979"], ["updated_at", "2016-05-18 21:30:58.817979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:58.833834"], ["updated_at", "2016-05-18 21:30:58.833834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-18 21:30:58.836377"], ["updated_at", "2016-05-18 21:30:58.836377"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.838274"], ["updated_at", "2016-05-18 21:30:58.838274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.839737"], ["updated_at", "2016-05-18 21:30:58.839737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-18 21:30:58.843445"], ["updated_at", "2016-05-18 21:30:58.843445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-18 21:30:58.844999"], ["updated_at", "2016-05-18 21:30:58.844999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-18 21:30:58.848773"], ["updated_at", "2016-05-18 21:30:58.848773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-18 21:30:58.850390"], ["updated_at", "2016-05-18 21:30:58.850390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-18 21:30:58.852974"], ["updated_at", "2016-05-18 21:30:58.852974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-18 21:30:58.854422"], ["updated_at", "2016-05-18 21:30:58.854422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-18 21:30:58.856682"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-18 21:30:58.858459"], ["updated_at", "2016-05-18 21:30:58.858459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ba235e14-dca3-4923-ad3c-69241155310c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-18 21:30:58.844999"], ["updated_at", "2016-05-18 21:30:58.844999"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:58.871537"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-18 21:30:58.850390"], ["updated_at", "2016-05-18 21:30:58.850390"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:58.876838"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-18 21:30:58.854422"], ["updated_at", "2016-05-18 21:30:58.854422"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:58.883104"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-18 21:30:58.885807"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ba235e14-dca3-4923-ad3c-69241155310c] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.56ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:58.900432"], ["updated_at", "2016-05-18 21:30:58.900432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-18 21:30:58.903069"], ["updated_at", "2016-05-18 21:30:58.903069"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.905029"], ["updated_at", "2016-05-18 21:30:58.905029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.907295"], ["updated_at", "2016-05-18 21:30:58.907295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-18 21:30:58.910233"], ["updated_at", "2016-05-18 21:30:58.910233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-18 21:30:58.911764"], ["updated_at", "2016-05-18 21:30:58.911764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-18 21:30:58.914534"], ["updated_at", "2016-05-18 21:30:58.914534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-18 21:30:58.916427"], ["updated_at", "2016-05-18 21:30:58.916427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-18 21:30:58.919341"], ["updated_at", "2016-05-18 21:30:58.919341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-18 21:30:58.921086"], ["updated_at", "2016-05-18 21:30:58.921086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-18 21:30:58.923442"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-18 21:30:58.924889"], ["updated_at", "2016-05-18 21:30:58.924889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6e2a8f94-5688-4d40-916e-25a9ea24a015) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-18 21:30:58.911764"], ["updated_at", "2016-05-18 21:30:58.911764"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:58.933191"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-18 21:30:58.916427"], ["updated_at", "2016-05-18 21:30:58.916427"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:58.938312"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-18 21:30:58.921086"], ["updated_at", "2016-05-18 21:30:58.921086"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:58.942755"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-18 21:30:58.945010"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e2a8f94-5688-4d40-916e-25a9ea24a015] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.52ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-18 21:30:58.953009"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-18 21:30:58.954500"], ["updated_at", "2016-05-18 21:30:58.954500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-18 21:30:58.911764"], ["updated_at", "2016-05-18 21:30:58.911764"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-18 21:30:58.964750"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-18 21:30:58.916427"], ["updated_at", "2016-05-18 21:30:58.916427"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-18 21:30:58.969877"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-18 21:30:58.921086"], ["updated_at", "2016-05-18 21:30:58.921086"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-18 21:30:58.974450"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-18 21:30:58.977507"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0d6f0ee-4790-4e24-a848-a5bdf08c8ce2] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.13ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:58.990201"], ["updated_at", "2016-05-18 21:30:58.990201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-18 21:30:58.992771"], ["updated_at", "2016-05-18 21:30:58.992771"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.994620"], ["updated_at", "2016-05-18 21:30:58.994620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:58.996636"], ["updated_at", "2016-05-18 21:30:58.996636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-18 21:30:58.999842"], ["updated_at", "2016-05-18 21:30:58.999842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-18 21:30:59.001599"], ["updated_at", "2016-05-18 21:30:59.001599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-18 21:30:59.004990"], ["updated_at", "2016-05-18 21:30:59.004990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-18 21:30:59.006517"], ["updated_at", "2016-05-18 21:30:59.006517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-18 21:30:59.009081"], ["updated_at", "2016-05-18 21:30:59.009081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-18 21:30:59.010513"], ["updated_at", "2016-05-18 21:30:59.010513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-18 21:30:59.012806"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-18 21:30:59.014468"], ["updated_at", "2016-05-18 21:30:59.014468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-18 21:30:59.001599"], ["updated_at", "2016-05-18 21:30:59.001599"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:59.022982"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-18 21:30:59.006517"], ["updated_at", "2016-05-18 21:30:59.006517"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:59.028244"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-18 21:30:59.010513"], ["updated_at", "2016-05-18 21:30:59.010513"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-18 21:30:59.034066"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-18 21:30:59.036427"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2021a8fa-0ea5-42bd-ad6c-bbba82ee8de8] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.72ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-18 21:30:59.041878"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-18 21:30:59.053037"], ["updated_at", "2016-05-18 21:30:59.053037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-18 21:30:59.064193"], ["updated_at", "2016-05-18 21:30:59.064193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-18 21:30:59.069208"], ["updated_at", "2016-05-18 21:30:59.069208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-18 21:30:59.074280"], ["updated_at", "2016-05-18 21:30:59.074280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-18 21:30:59.079778"], ["updated_at", "2016-05-18 21:30:59.079778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-18 21:30:59.081461"], ["updated_at", "2016-05-18 21:30:59.081461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-18 21:30:59.088241"], ["updated_at", "2016-05-18 21:30:59.088241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-18 21:30:59.089994"], ["updated_at", "2016-05-18 21:30:59.089994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-05-18 21:30:59.101720"], ["updated_at", "2016-05-18 21:30:59.101720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-05-18 21:30:59.107370"], ["updated_at", "2016-05-18 21:30:59.107370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-18 21:30:59.114118"], ["updated_at", "2016-05-18 21:30:59.114118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:59.307091"], ["updated_at", "2016-05-18 21:30:59.307091"]]  (0.1ms) RELEASE 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 1 [["slug", "winterfell-news-8"]]  (0.4ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:59.322211"], ["updated_at", "2016-05-18 21:30:59.322211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-18 21:30:59.325272"], ["updated_at", "2016-05-18 21:30:59.325272"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:59.327704"], ["updated_at", "2016-05-18 21:30:59.327704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:59.332392"], ["updated_at", "2016-05-18 21:30:59.332392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-18 21:30:59.335830"], ["updated_at", "2016-05-18 21:30:59.335830"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:59.338015"], ["updated_at", "2016-05-18 21:30:59.338015"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-18 21:30:59.341707"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-18 21:30:59.357423"], ["updated_at", "2016-05-18 21:30:59.357423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:59.362803"], ["updated_at", "2016-05-18 21:30:59.362803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-18 21:30:59.366979"], ["updated_at", "2016-05-18 21:30:59.366979"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:59.369049"], ["updated_at", "2016-05-18 21:30:59.369049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:59.371403"], ["updated_at", "2016-05-18 21:30:59.371403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:59.403661"], ["updated_at", "2016-05-18 21:30:59.403661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (1.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-05-18 21:30:59.412795"], ["updated_at", "2016-05-18 21:30:59.412795"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.6ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-18 21:30:59.467917"], ["updated_at", "2016-05-18 21:30:59.467917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:59.480490"], ["updated_at", "2016-05-18 21:30:59.480490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-18 21:30:59.483351"], ["updated_at", "2016-05-18 21:30:59.483351"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:59.485522"], ["updated_at", "2016-05-18 21:30:59.485522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-18 21:30:59.504639"], ["updated_at", "2016-05-18 21:30:59.504639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-18 21:30:59.507180"], ["updated_at", "2016-05-18 21:30:59.507180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-18 21:30:59.509939"], ["updated_at", "2016-05-18 21:30:59.509939"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:59.511572"], ["updated_at", "2016-05-18 21:30:59.511572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-18 21:30:59.513032"], ["updated_at", "2016-05-18 21:30:59.513032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-18 21:30:59.516533"], ["updated_at", "2016-05-18 21:30:59.516533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) DELETE FROM "pulitzer_content_element_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) 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';  (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.8ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (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';  (0.9ms) DELETE FROM "pulitzer_content_elements";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements';  (1.1ms) DELETE FROM "pulitzer_post_tags";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (0.9ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.6ms) DELETE FROM "pulitzer_free_form_sections";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_free_form_sections';  (0.8ms) DELETE FROM "pulitzer_layouts";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_layouts';  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-19 16:15:02.878800"], ["updated_at", "2016-05-19 16:15:02.878800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (7.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (30.6ms) Completed 200 OK in 64ms (Views: 40.3ms | ActiveRecord: 0.4ms)  (0.3ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-19 16:15:02.959484"], ["updated_at", "2016-05-19 16:15:02.959484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (7.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (9.3ms) Completed 200 OK in 18ms (Views: 11.0ms | ActiveRecord: 1.0ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-19 16:15:02.987249"], ["updated_at", "2016-05-19 16:15:02.987249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (12.7ms) Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-19 16:15:03.014919"], ["updated_at", "2016-05-19 16:15:03.014919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (8.5ms) Completed 200 OK in 16ms (Views: 9.0ms | ActiveRecord: 0.6ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-19 16:15:03.046374"], ["updated_at", "2016-05-19 16:15:03.046374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-19 16:15:03.068085"], ["updated_at", "2016-05-19 16:15:03.068085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (13.1ms) Completed 200 OK in 35ms (Views: 18.0ms | ActiveRecord: 0.8ms)  (0.6ms) 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", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-19 16:15:03.119321"], ["updated_at", "2016-05-19 16:15:03.119321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.3ms) 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::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (9.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (10.9ms) Completed 200 OK in 24ms (Views: 12.4ms | ActiveRecord: 1.2ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-19 16:15:03.157588"], ["updated_at", "2016-05-19 16:15:03.157588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (12.9ms) Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-19 16:15:03.186544"], ["updated_at", "2016-05-19 16:15:03.186544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-19 16:15:03.191871"], ["updated_at", "2016-05-19 16:15:03.191871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.0ms) Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.5ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.223154"], ["updated_at", "2016-05-19 16:15:03.223154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-19 16:15:03.350821"], ["updated_at", "2016-05-19 16:15:03.350821"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.354632"], ["updated_at", "2016-05-19 16:15:03.354632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.366908"], ["updated_at", "2016-05-19 16:15:03.366908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-19 16:15:03.381716"], ["updated_at", "2016-05-19 16:15:03.381716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.385447"], ["updated_at", "2016-05-19 16:15:03.385447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-19 16:15:03.389331"], ["updated_at", "2016-05-19 16:15:03.389331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.391324"], ["updated_at", "2016-05-19 16:15:03.391324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-19 16:15:03.395076"], ["updated_at", "2016-05-19 16:15:03.395076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.397037"], ["updated_at", "2016-05-19 16:15:03.397037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.402772"], ["updated_at", "2016-05-19 16:15:03.402772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.385447"], ["updated_at", "2016-05-19 16:15:03.385447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.412453"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.391324"], ["updated_at", "2016-05-19 16:15:03.391324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.423043"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.397037"], ["updated_at", "2016-05-19 16:15:03.397037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.431722"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.2ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.444509"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.464742"], ["updated_at", "2016-05-19 16:15:03.464742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-19 16:15:03.470232"], ["updated_at", "2016-05-19 16:15:03.470232"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.476134"], ["updated_at", "2016-05-19 16:15:03.476134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.480151"], ["updated_at", "2016-05-19 16:15:03.480151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.491684"], ["updated_at", "2016-05-19 16:15:03.491684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.518899"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.536019"], ["updated_at", "2016-05-19 16:15:03.536019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-19 16:15:03.538843"], ["updated_at", "2016-05-19 16:15:03.538843"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.540828"], ["updated_at", "2016-05-19 16:15:03.540828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.542577"], ["updated_at", "2016-05-19 16:15:03.542577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-19 16:15:03.545956"], ["updated_at", "2016-05-19 16:15:03.545956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.547602"], ["updated_at", "2016-05-19 16:15:03.547602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-19 16:15:03.550452"], ["updated_at", "2016-05-19 16:15:03.550452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.552517"], ["updated_at", "2016-05-19 16:15:03.552517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-19 16:15:03.555872"], ["updated_at", "2016-05-19 16:15:03.555872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.557547"], ["updated_at", "2016-05-19 16:15:03.557547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.559527"], ["updated_at", "2016-05-19 16:15:03.559527"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.547602"], ["updated_at", "2016-05-19 16:15:03.547602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.569724"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.552517"], ["updated_at", "2016-05-19 16:15:03.552517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.574508"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.557547"], ["updated_at", "2016-05-19 16:15:03.557547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.580308"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.583824"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.594167"], ["updated_at", "2016-05-19 16:15:03.594167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-19 16:15:03.601369"], ["updated_at", "2016-05-19 16:15:03.601369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-19 16:15:03.604664"], ["updated_at", "2016-05-19 16:15:03.604664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-19 16:15:03.607178"], ["updated_at", "2016-05-19 16:15:03.607178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-19 16:15:03.608671"], ["updated_at", "2016-05-19 16:15:03.608671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-19 16:15:03.611854"], ["updated_at", "2016-05-19 16:15:03.611854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-19 16:15:03.614153"], ["updated_at", "2016-05-19 16:15:03.614153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.630057"], ["updated_at", "2016-05-19 16:15:03.630057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.634060"], ["updated_at", "2016-05-19 16:15:03.634060"]]  (0.1ms) RELEASE SAVEPOINT active_record_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 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.639199"], ["updated_at", "2016-05-19 16:15:03.639199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.645516"], ["updated_at", "2016-05-19 16:15:03.645516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-19 16:15:03.649439"], ["updated_at", "2016-05-19 16:15:03.649439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-19 16:15:03.651579"], ["updated_at", "2016-05-19 16:15:03.651579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-19 16:15:03.655199"], ["updated_at", "2016-05-19 16:15:03.655199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-19 16:15:03.656698"], ["updated_at", "2016-05-19 16:15:03.656698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-19 16:15:03.659167"], ["updated_at", "2016-05-19 16:15:03.659167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-19 16:15:03.661226"], ["updated_at", "2016-05-19 16:15:03.661226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-19 16:15:03.665235"], ["updated_at", "2016-05-19 16:15:03.665235"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.667680"], ["updated_at", "2016-05-19 16:15:03.667680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.675686"], ["updated_at", "2016-05-19 16:15:03.675686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.681021"], ["updated_at", "2016-05-19 16:15:03.681021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.687139"], ["updated_at", "2016-05-19 16:15:03.687139"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.695289"], ["updated_at", "2016-05-19 16:15:03.695289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-05-19 16:15:03.703101"], ["updated_at", "2016-05-19 16:15:03.703101"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.704874"], ["updated_at", "2016-05-19 16:15:03.704874"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.726873"], ["updated_at", "2016-05-19 16:15:03.726873"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-19 16:15:03.731126"], ["updated_at", "2016-05-19 16:15:03.731126"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.734008"], ["updated_at", "2016-05-19 16:15:03.734008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.736054"], ["updated_at", "2016-05-19 16:15:03.736054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-19 16:15:03.738928"], ["updated_at", "2016-05-19 16:15:03.738928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.740479"], ["updated_at", "2016-05-19 16:15:03.740479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-19 16:15:03.744750"], ["updated_at", "2016-05-19 16:15:03.744750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.746513"], ["updated_at", "2016-05-19 16:15:03.746513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-19 16:15:03.749436"], ["updated_at", "2016-05-19 16:15:03.749436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.751093"], ["updated_at", "2016-05-19 16:15:03.751093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-19 16:15:03.754456"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.756734"], ["updated_at", "2016-05-19 16:15:03.756734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.740479"], ["updated_at", "2016-05-19 16:15:03.740479"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.770769"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.746513"], ["updated_at", "2016-05-19 16:15:03.746513"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.775390"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.751093"], ["updated_at", "2016-05-19 16:15:03.751093"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.780576"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.782954"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f5bc3c3-c7e7-4d4b-b849-535c9fbc86e4] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.34ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.797401"], ["updated_at", "2016-05-19 16:15:03.797401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-19 16:15:03.800504"], ["updated_at", "2016-05-19 16:15:03.800504"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.802935"], ["updated_at", "2016-05-19 16:15:03.802935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.805058"], ["updated_at", "2016-05-19 16:15:03.805058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-19 16:15:03.807784"], ["updated_at", "2016-05-19 16:15:03.807784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.809314"], ["updated_at", "2016-05-19 16:15:03.809314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-19 16:15:03.812757"], ["updated_at", "2016-05-19 16:15:03.812757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.814472"], ["updated_at", "2016-05-19 16:15:03.814472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-19 16:15:03.817685"], ["updated_at", "2016-05-19 16:15:03.817685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.819501"], ["updated_at", "2016-05-19 16:15:03.819501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-19 16:15:03.822437"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.824365"], ["updated_at", "2016-05-19 16:15:03.824365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: be561d7f-d740-4c38-bef2-702e54ba7c53) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.809314"], ["updated_at", "2016-05-19 16:15:03.809314"]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.835718"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.814472"], ["updated_at", "2016-05-19 16:15:03.814472"]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.841125"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.819501"], ["updated_at", "2016-05-19 16:15:03.819501"]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.846925"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.849413"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be561d7f-d740-4c38-bef2-702e54ba7c53] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.51ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-19 16:15:03.856508"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.858329"], ["updated_at", "2016-05-19 16:15:03.858329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: fc93de82-b31e-4b9a-beb9-9bda125ef564) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.809314"], ["updated_at", "2016-05-19 16:15:03.809314"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-19 16:15:03.867010"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.814472"], ["updated_at", "2016-05-19 16:15:03.814472"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-19 16:15:03.872890"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.819501"], ["updated_at", "2016-05-19 16:15:03.819501"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-19 16:15:03.878525"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.881337"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fc93de82-b31e-4b9a-beb9-9bda125ef564] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.05ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:03.895855"], ["updated_at", "2016-05-19 16:15:03.895855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-19 16:15:03.898661"], ["updated_at", "2016-05-19 16:15:03.898661"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.900886"], ["updated_at", "2016-05-19 16:15:03.900886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:03.902584"], ["updated_at", "2016-05-19 16:15:03.902584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-19 16:15:03.905693"], ["updated_at", "2016-05-19 16:15:03.905693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.907331"], ["updated_at", "2016-05-19 16:15:03.907331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-19 16:15:03.910682"], ["updated_at", "2016-05-19 16:15:03.910682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.912429"], ["updated_at", "2016-05-19 16:15:03.912429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-19 16:15:03.915467"], ["updated_at", "2016-05-19 16:15:03.915467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-19 16:15:03.917228"], ["updated_at", "2016-05-19 16:15:03.917228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-19 16:15:03.919903"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-19 16:15:03.921593"], ["updated_at", "2016-05-19 16:15:03.921593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 8f31b89c-432f-44fc-b36a-532f813bc6f4) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.907331"], ["updated_at", "2016-05-19 16:15:03.907331"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.931719"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-19 16:15:03.912429"], ["updated_at", "2016-05-19 16:15:03.912429"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.938216"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-19 16:15:03.917228"], ["updated_at", "2016-05-19 16:15:03.917228"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-19 16:15:03.944761"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-19 16:15:03.947482"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8f31b89c-432f-44fc-b36a-532f813bc6f4] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.12ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-19 16:15:03.954104"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-19 16:15:03.967452"], ["updated_at", "2016-05-19 16:15:03.967452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-19 16:15:03.978989"], ["updated_at", "2016-05-19 16:15:03.978989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-19 16:15:03.984171"], ["updated_at", "2016-05-19 16:15:03.984171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-19 16:15:03.989549"], ["updated_at", "2016-05-19 16:15:03.989549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-19 16:15:03.995069"], ["updated_at", "2016-05-19 16:15:03.995069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:03.996918"], ["updated_at", "2016-05-19 16:15:03.996918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-19 16:15:04.006647"], ["updated_at", "2016-05-19 16:15:04.006647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-19 16:15:04.009266"], ["updated_at", "2016-05-19 16:15:04.009266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-05-19 16:15:04.016935"], ["updated_at", "2016-05-19 16:15:04.016935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-05-19 16:15:04.022654"], ["updated_at", "2016-05-19 16:15:04.022654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-19 16:15:04.028233"], ["updated_at", "2016-05-19 16:15:04.028233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.236926"], ["updated_at", "2016-05-19 16:15:04.236926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.251191"], ["updated_at", "2016-05-19 16:15:04.251191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-19 16:15:04.254715"], ["updated_at", "2016-05-19 16:15:04.254715"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.256994"], ["updated_at", "2016-05-19 16:15:04.256994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.4ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.263302"], ["updated_at", "2016-05-19 16:15:04.263302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-19 16:15:04.267352"], ["updated_at", "2016-05-19 16:15:04.267352"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.270256"], ["updated_at", "2016-05-19 16:15:04.270256"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-19 16:15:04.272868"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-19 16:15:04.285452"], ["updated_at", "2016-05-19 16:15:04.285452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.291584"], ["updated_at", "2016-05-19 16:15:04.291584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-19 16:15:04.294988"], ["updated_at", "2016-05-19 16:15:04.294988"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.296774"], ["updated_at", "2016-05-19 16:15:04.296774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.298823"], ["updated_at", "2016-05-19 16:15:04.298823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.325202"], ["updated_at", "2016-05-19 16:15:04.325202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-05-19 16:15:04.330775"], ["updated_at", "2016-05-19 16:15:04.330775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-19 16:15:04.397260"], ["updated_at", "2016-05-19 16:15:04.397260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.410784"], ["updated_at", "2016-05-19 16:15:04.410784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-19 16:15:04.413668"], ["updated_at", "2016-05-19 16:15:04.413668"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.415892"], ["updated_at", "2016-05-19 16:15:04.415892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-19 16:15:04.436788"], ["updated_at", "2016-05-19 16:15:04.436788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-19 16:15:04.440477"], ["updated_at", "2016-05-19 16:15:04.440477"]]  (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 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-19 16:15:04.444407"], ["updated_at", "2016-05-19 16:15:04.444407"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.446734"], ["updated_at", "2016-05-19 16:15:04.446734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-19 16:15:04.448402"], ["updated_at", "2016-05-19 16:15:04.448402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-19 16:15:04.451049"], ["updated_at", "2016-05-19 16:15:04.451049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)  (0.9ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.8ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  (0.8ms) CREATE TABLE "pulitzer_layouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.8ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer, "layout_id" integer)  (0.9ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar)  (0.8ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)   (0.8ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)  (1.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (0.9ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160517182500')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150901153531') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618224344"]]  (1.2ms) commit transaction Migrating to CreatePulitzerContentElementTypes (20150618225402)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618225402"]]  (1.0ms) commit transaction Migrating to CreatePulitzerPosts (20150619204615)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204615"]]  (0.6ms) commit transaction Migrating to CreatePulitzerContentElements (20150619204708)  (0.2ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "post_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204708"]]  (0.6ms) commit transaction Migrating to CreatePulitzerTags (20150619213436)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213436"]]  (0.7ms) commit transaction Migrating to CreatePulitzerPostTags (20150619213457)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213457"]]  (0.5ms) commit transaction Migrating to CreatePulitzerPostTypeContentElementTypes (20150619215914)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619215914"]]  (0.6ms) commit transaction Migrating to AddPluralAndTemplateToPulitzerPostTypes (20150629195832)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_post_types" ADD "plural" boolean  (0.2ms) ALTER TABLE "pulitzer_post_types" ADD "template" boolean SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150629195832"]]  (0.6ms) commit transaction Migrating to AddPulitzerContentElementTypes (20150702150819)  (0.1ms) begin transaction Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", "2016-05-23 15:28:20.232296"], ["updated_at", "2016-05-23 15:28:20.232296"]] Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-23 15:28:20.234986"], ["updated_at", "2016-05-23 15:28:20.234986"]] Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-23 15:28:20.236947"], ["updated_at", "2016-05-23 15:28:20.236947"]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150702150819"]]  (0.7ms) commit transaction Migrating to AddSlugToPulitzerPosts (20150724150230)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_posts" ADD "slug" varchar  (0.5ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150724150230"]]  (1.0ms) commit transaction Migrating to CreateSearchLocations (20150901153531)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150901153531"]]  (0.7ms) commit transaction Migrating to ChangeLabelTypeFromPulitzerPostTags (20150902212741)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "pulitzer_post_tags"  (0.3ms) DROP TABLE "pulitzer_post_tags"  (0.1ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "apulitzer_post_tags"  (0.3ms) DROP TABLE "apulitzer_post_tags" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150902212741"]]  (0.8ms) commit transaction Migrating to AddTextEditorToPulitzerPostTypeContentElementTypes (20151026180630)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "pulitzer_post_type_content_element_types" ADD "text_editor" varchar SQL (0.1ms) UPDATE "pulitzer_post_type_content_element_types" SET "text_editor" = 'None' WHERE "pulitzer_post_type_content_element_types"."id" IN (SELECT "pulitzer_post_type_content_element_types"."id" FROM "pulitzer_post_type_content_element_types" ORDER BY "pulitzer_post_type_content_element_types"."id" ASC) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151026180630"]]  (0.6ms) commit transaction Migrating to CreatePulitzerVersions (20151029194354)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029194354"]]  (0.6ms) commit transaction Migrating to ChangePostElementsToVersions (20151029220558)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "apulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_content_elements"  (0.3ms) DROP TABLE "pulitzer_content_elements"  (0.2ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "apulitzer_content_elements"  (0.1ms) DROP TABLE "apulitzer_content_elements"  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_post_tags"  (0.5ms) DROP TABLE "pulitzer_post_tags"  (0.2ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "apulitzer_post_tags"  (0.1ms) DROP TABLE "apulitzer_post_tags" Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" ORDER BY "pulitzer_posts"."id" ASC LIMIT 1000 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029220558"]]  (0.8ms) commit transaction Migrating to AddPostTypeContentElementAttributesToContentElements (20151113183344)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "pulitzer_content_elements" ADD "text_editor" varchar  (0.1ms) ALTER TABLE "pulitzer_content_elements" ADD "height" integer DEFAULT 100  (0.1ms) ALTER TABLE "pulitzer_content_elements" ADD "width" integer DEFAULT 100  (0.1ms) ALTER TABLE "pulitzer_content_elements" ADD "sort_order" integer Scoped order and limit are ignored, it's forced to be batch order and batch size Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1000 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151113183344"]]  (0.5ms) commit transaction Migrating to ChangeTemplateToPulitzerPostTypes (20151116162508)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "template" boolean)   (0.1ms) SELECT * FROM "pulitzer_post_types"  (0.3ms) DROP TABLE "pulitzer_post_types"  (0.1ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean)  (0.1ms) SELECT * FROM "apulitzer_post_types"  (0.1ms) DROP TABLE "apulitzer_post_types"  (0.2ms) ALTER TABLE "pulitzer_post_types" ADD "kind" integer DEFAULT 0 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151116162508"]]  (0.9ms) commit transaction Migrating to AddKindToPulitzerContentElements (20151118031237)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_content_elements" ADD "kind" integer DEFAULT 0 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151118031237"]]  (0.9ms) commit transaction Migrating to AddErrorsToVersion (20160122204201)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_versions" ADD "cloning_errors" jsonb SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160122204201"]]  (0.8ms) commit transaction Migrating to CreatePartials (20160511192041)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160511192041"]]  (0.9ms) commit transaction Migrating to AddPartialToContentElement (20160512214545)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_content_elements" ADD "partial_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160512214545"]]  (0.7ms) commit transaction Migrating to CreateFreeFormSectionType (20160513153209)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160513153209"]]  (0.7ms) commit transaction Migrating to CreateFreeFormSection (20160513153214)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160513153214"]]  (0.9ms) commit transaction Migrating to FixPostTypeKinds (20160516150237)  (0.1ms) begin transaction Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" IN (1, 2) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160516150237"]]  (0.7ms) commit transaction Migrating to CreateLayouts (20160517181706)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "pulitzer_layouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160517181706"]]  (1.0ms) commit transaction Migrating to AddLayoutToPartial (20160517182500)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_partials" ADD "layout_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160517182500"]]  (0.9ms) commit transaction Migrating to AddLabelToPartial (20160519181030)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_partials" ADD "label" varchar SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160519181030"]]  (1.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_pulitzer_posts_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_posts_on_slug' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) DELETE FROM "pulitzer_content_element_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (0.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';  (0.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';  (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 "search_locations";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (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.6ms) 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.7ms) 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';  (0.6ms) 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.6ms) 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.6ms) 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.6ms) 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.6ms) DELETE FROM "pulitzer_layouts";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_layouts';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 15:28:28.697717"], ["updated_at", "2016-05-23 15:28:28.697717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (25.0ms) Completed 200 OK in 56ms (Views: 33.8ms | ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 15:28:28.769367"], ["updated_at", "2016-05-23 15:28:28.769367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.3ms) Completed 200 OK in 15ms (Views: 9.2ms | ActiveRecord: 0.8ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 15:28:28.792542"], ["updated_at", "2016-05-23 15:28:28.792542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (10.2ms) Completed 200 OK in 13ms (Views: 12.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 15:28:28.815841"], ["updated_at", "2016-05-23 15:28:28.815841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.7ms) Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 15:28:28.837441"], ["updated_at", "2016-05-23 15:28:28.837441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) 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", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 15:28:28.856478"], ["updated_at", "2016-05-23 15:28:28.856478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (11.9ms) Completed 200 OK in 32ms (Views: 15.7ms | ActiveRecord: 0.6ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 15:28:28.905130"], ["updated_at", "2016-05-23 15:28:28.905130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.4ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (4.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (11.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (13.2ms) Completed 200 OK in 26ms (Views: 14.7ms | ActiveRecord: 1.1ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 15:28:28.944086"], ["updated_at", "2016-05-23 15:28:28.944086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (12.4ms) Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 15:28:28.970911"], ["updated_at", "2016-05-23 15:28:28.970911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 15:28:28.974858"], ["updated_at", "2016-05-23 15:28:28.974858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (6.6ms) Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:29.005406"], ["updated_at", "2016-05-23 15:28:29.005406"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-23 15:28:29.129151"], ["updated_at", "2016-05-23 15:28:29.129151"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.132696"], ["updated_at", "2016-05-23 15:28:29.132696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.134787"], ["updated_at", "2016-05-23 15:28:29.134787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-23 15:28:29.148018"], ["updated_at", "2016-05-23 15:28:29.148018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.150748"], ["updated_at", "2016-05-23 15:28:29.150748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-23 15:28:29.154332"], ["updated_at", "2016-05-23 15:28:29.154332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.156089"], ["updated_at", "2016-05-23 15:28:29.156089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-23 15:28:29.158762"], ["updated_at", "2016-05-23 15:28:29.158762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.160159"], ["updated_at", "2016-05-23 15:28:29.160159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 15:28:29.164207"], ["updated_at", "2016-05-23 15:28:29.164207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 15:28:29.150748"], ["updated_at", "2016-05-23 15:28:29.150748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.172093"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 15:28:29.156089"], ["updated_at", "2016-05-23 15:28:29.156089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.176786"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 15:28:29.160159"], ["updated_at", "2016-05-23 15:28:29.160159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.181625"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 15:28:29.186759"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:29.197181"], ["updated_at", "2016-05-23 15:28:29.197181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-23 15:28:29.200432"], ["updated_at", "2016-05-23 15:28:29.200432"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.202745"], ["updated_at", "2016-05-23 15:28:29.202745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.204881"], ["updated_at", "2016-05-23 15:28:29.204881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 15:28:29.210701"], ["updated_at", "2016-05-23 15:28:29.210701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 15:28:29.222491"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:29.231611"], ["updated_at", "2016-05-23 15:28:29.231611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-23 15:28:29.234631"], ["updated_at", "2016-05-23 15:28:29.234631"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.237620"], ["updated_at", "2016-05-23 15:28:29.237620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.239550"], ["updated_at", "2016-05-23 15:28:29.239550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-23 15:28:29.242439"], ["updated_at", "2016-05-23 15:28:29.242439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.243983"], ["updated_at", "2016-05-23 15:28:29.243983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-23 15:28:29.246660"], ["updated_at", "2016-05-23 15:28:29.246660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.248370"], ["updated_at", "2016-05-23 15:28:29.248370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-23 15:28:29.251103"], ["updated_at", "2016-05-23 15:28:29.251103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.253533"], ["updated_at", "2016-05-23 15:28:29.253533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 15:28:29.256075"], ["updated_at", "2016-05-23 15:28:29.256075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 15:28:29.243983"], ["updated_at", "2016-05-23 15:28:29.243983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.262946"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 15:28:29.248370"], ["updated_at", "2016-05-23 15:28:29.248370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.268511"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 15:28:29.253533"], ["updated_at", "2016-05-23 15:28:29.253533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.273650"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 15:28:29.275929"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:29.285216"], ["updated_at", "2016-05-23 15:28:29.285216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-23 15:28:29.291293"], ["updated_at", "2016-05-23 15:28:29.291293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-23 15:28:29.294360"], ["updated_at", "2016-05-23 15:28:29.294360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-23 15:28:29.297040"], ["updated_at", "2016-05-23 15:28:29.297040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-23 15:28:29.298595"], ["updated_at", "2016-05-23 15:28:29.298595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-23 15:28:29.300901"], ["updated_at", "2016-05-23 15:28:29.300901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-23 15:28:29.302509"], ["updated_at", "2016-05-23 15:28:29.302509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-23 15:28:29.317196"], ["updated_at", "2016-05-23 15:28:29.317196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-23 15:28:29.322842"], ["updated_at", "2016-05-23 15:28:29.322842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-23 15:28:29.326275"], ["updated_at", "2016-05-23 15:28:29.326275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:29.332055"], ["updated_at", "2016-05-23 15:28:29.332055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.7ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-23 15:28:29.334891"], ["updated_at", "2016-05-23 15:28:29.334891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-23 15:28:29.337486"], ["updated_at", "2016-05-23 15:28:29.337486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-23 15:28:29.340493"], ["updated_at", "2016-05-23 15:28:29.340493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-23 15:28:29.341902"], ["updated_at", "2016-05-23 15:28:29.341902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-23 15:28:29.344134"], ["updated_at", "2016-05-23 15:28:29.344134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-23 15:28:29.345396"], ["updated_at", "2016-05-23 15:28:29.345396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-23 15:28:29.349426"], ["updated_at", "2016-05-23 15:28:29.349426"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.351225"], ["updated_at", "2016-05-23 15:28:29.351225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-23 15:28:29.358930"], ["updated_at", "2016-05-23 15:28:29.358930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-23 15:28:29.363350"], ["updated_at", "2016-05-23 15:28:29.363350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-23 15:28:29.368358"], ["updated_at", "2016-05-23 15:28:29.368358"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:29.377398"], ["updated_at", "2016-05-23 15:28:29.377398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.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 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-05-23 15:28:29.386165"], ["updated_at", "2016-05-23 15:28:29.386165"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.388243"], ["updated_at", "2016-05-23 15:28:29.388243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:29.406712"], ["updated_at", "2016-05-23 15:28:29.406712"]]  (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 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-23 15:28:29.410689"], ["updated_at", "2016-05-23 15:28:29.410689"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.413176"], ["updated_at", "2016-05-23 15:28:29.413176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.415404"], ["updated_at", "2016-05-23 15:28:29.415404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-23 15:28:29.418728"], ["updated_at", "2016-05-23 15:28:29.418728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.421708"], ["updated_at", "2016-05-23 15:28:29.421708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-23 15:28:29.425182"], ["updated_at", "2016-05-23 15:28:29.425182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.427274"], ["updated_at", "2016-05-23 15:28:29.427274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-23 15:28:29.430633"], ["updated_at", "2016-05-23 15:28:29.430633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.432386"], ["updated_at", "2016-05-23 15:28:29.432386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 15:28:29.435240"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 15:28:29.436988"], ["updated_at", "2016-05-23 15:28:29.436988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 8e9fceac-29f6-4263-8746-4c15f330b749) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 15:28:29.421708"], ["updated_at", "2016-05-23 15:28:29.421708"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.456318"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 15:28:29.427274"], ["updated_at", "2016-05-23 15:28:29.427274"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.461859"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 15:28:29.432386"], ["updated_at", "2016-05-23 15:28:29.432386"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.466290"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 15:28:29.468964"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8e9fceac-29f6-4263-8746-4c15f330b749] Performed Pulitzer::CloneVersionJob from Inline(default) in 29.31ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:29.482785"], ["updated_at", "2016-05-23 15:28:29.482785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-23 15:28:29.485896"], ["updated_at", "2016-05-23 15:28:29.485896"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.488295"], ["updated_at", "2016-05-23 15:28:29.488295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.490196"], ["updated_at", "2016-05-23 15:28:29.490196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-23 15:28:29.493362"], ["updated_at", "2016-05-23 15:28:29.493362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.494980"], ["updated_at", "2016-05-23 15:28:29.494980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-23 15:28:29.497675"], ["updated_at", "2016-05-23 15:28:29.497675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.499117"], ["updated_at", "2016-05-23 15:28:29.499117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-23 15:28:29.501619"], ["updated_at", "2016-05-23 15:28:29.501619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.503554"], ["updated_at", "2016-05-23 15:28:29.503554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 15:28:29.506308"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 15:28:29.507833"], ["updated_at", "2016-05-23 15:28:29.507833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 0ac461c4-0766-405e-aa95-20ad6eb642ae) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 15:28:29.494980"], ["updated_at", "2016-05-23 15:28:29.494980"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.517001"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 15:28:29.499117"], ["updated_at", "2016-05-23 15:28:29.499117"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.523221"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 15:28:29.503554"], ["updated_at", "2016-05-23 15:28:29.503554"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.528863"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 15:28:29.531171"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ac461c4-0766-405e-aa95-20ad6eb642ae] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.73ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-23 15:28:29.538306"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 15:28:29.539982"], ["updated_at", "2016-05-23 15:28:29.539982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 277a7ad6-dd54-4a5b-aeb8-da21b552446f) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 15:28:29.494980"], ["updated_at", "2016-05-23 15:28:29.494980"]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-23 15:28:29.547797"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 15:28:29.499117"], ["updated_at", "2016-05-23 15:28:29.499117"]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-23 15:28:29.552460"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 15:28:29.503554"], ["updated_at", "2016-05-23 15:28:29.503554"]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-23 15:28:29.557463"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 15:28:29.560283"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [277a7ad6-dd54-4a5b-aeb8-da21b552446f] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.83ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:29.573536"], ["updated_at", "2016-05-23 15:28:29.573536"]]  (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 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-23 15:28:29.576581"], ["updated_at", "2016-05-23 15:28:29.576581"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.579409"], ["updated_at", "2016-05-23 15:28:29.579409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.581393"], ["updated_at", "2016-05-23 15:28:29.581393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-23 15:28:29.584445"], ["updated_at", "2016-05-23 15:28:29.584445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.586308"], ["updated_at", "2016-05-23 15:28:29.586308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-23 15:28:29.589547"], ["updated_at", "2016-05-23 15:28:29.589547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.591011"], ["updated_at", "2016-05-23 15:28:29.591011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-23 15:28:29.593662"], ["updated_at", "2016-05-23 15:28:29.593662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 15:28:29.595252"], ["updated_at", "2016-05-23 15:28:29.595252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 15:28:29.598141"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 15:28:29.599734"], ["updated_at", "2016-05-23 15:28:29.599734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c9e02dde-08e3-47e2-832f-c91a26363a87) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 15:28:29.586308"], ["updated_at", "2016-05-23 15:28:29.586308"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.610183"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 15:28:29.591011"], ["updated_at", "2016-05-23 15:28:29.591011"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.616680"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 15:28:29.595252"], ["updated_at", "2016-05-23 15:28:29.595252"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 15:28:29.623399"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 15:28:29.626277"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c9e02dde-08e3-47e2-832f-c91a26363a87] Performed Pulitzer::CloneVersionJob from Inline(default) in 28.66ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-23 15:28:29.633068"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-23 15:28:29.646064"], ["updated_at", "2016-05-23 15:28:29.646064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-23 15:28:29.658744"], ["updated_at", "2016-05-23 15:28:29.658744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-23 15:28:29.666967"], ["updated_at", "2016-05-23 15:28:29.666967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-23 15:28:29.673219"], ["updated_at", "2016-05-23 15:28:29.673219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-23 15:28:29.679281"], ["updated_at", "2016-05-23 15:28:29.679281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-23 15:28:29.681015"], ["updated_at", "2016-05-23 15:28:29.681015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-23 15:28:29.688408"], ["updated_at", "2016-05-23 15:28:29.688408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-23 15:28:29.690335"], ["updated_at", "2016-05-23 15:28:29.690335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-05-23 15:28:29.704518"], ["updated_at", "2016-05-23 15:28:29.704518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-05-23 15:28:29.709789"], ["updated_at", "2016-05-23 15:28:29.709789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-23 15:28:29.716408"], ["updated_at", "2016-05-23 15:28:29.716408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:29.933852"], ["updated_at", "2016-05-23 15:28:29.933852"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:29.951859"], ["updated_at", "2016-05-23 15:28:29.951859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-23 15:28:29.957301"], ["updated_at", "2016-05-23 15:28:29.957301"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.959934"], ["updated_at", "2016-05-23 15:28:29.959934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:29.964671"], ["updated_at", "2016-05-23 15:28:29.964671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-23 15:28:29.968429"], ["updated_at", "2016-05-23 15:28:29.968429"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:29.971780"], ["updated_at", "2016-05-23 15:28:29.971780"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-23 15:28:29.974946"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-23 15:28:29.989177"], ["updated_at", "2016-05-23 15:28:29.989177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:29.994942"], ["updated_at", "2016-05-23 15:28:29.994942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-23 15:28:29.998366"], ["updated_at", "2016-05-23 15:28:29.998366"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:30.000061"], ["updated_at", "2016-05-23 15:28:30.000061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:30.002967"], ["updated_at", "2016-05-23 15:28:30.002967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:30.039923"], ["updated_at", "2016-05-23 15:28:30.039923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-05-23 15:28:30.043228"], ["updated_at", "2016-05-23 15:28:30.043228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-23 15:28:30.096949"], ["updated_at", "2016-05-23 15:28:30.096949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:30.112414"], ["updated_at", "2016-05-23 15:28:30.112414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-23 15:28:30.115593"], ["updated_at", "2016-05-23 15:28:30.115593"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:30.117738"], ["updated_at", "2016-05-23 15:28:30.117738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-23 15:28:30.135646"], ["updated_at", "2016-05-23 15:28:30.135646"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 15:28:30.138661"], ["updated_at", "2016-05-23 15:28:30.138661"]]  (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 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-23 15:28:30.142240"], ["updated_at", "2016-05-23 15:28:30.142240"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:30.144209"], ["updated_at", "2016-05-23 15:28:30.144209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 15:28:30.145761"], ["updated_at", "2016-05-23 15:28:30.145761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-23 15:28:30.148301"], ["updated_at", "2016-05-23 15:28:30.148301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.3ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction 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.5ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (1.5ms) 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.2ms) DELETE FROM "pulitzer_tags";  (0.3ms) 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.1ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (1.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.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';  (1.2ms) 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';  (0.9ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (1.1ms) DELETE FROM "pulitzer_free_form_section_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_free_form_section_types';  (0.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.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';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 16:12:45.665612"], ["updated_at", "2016-05-23 16:12:45.665612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (8.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (35.7ms) Completed 200 OK in 64ms (Views: 45.4ms | ActiveRecord: 0.3ms)  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 16:12:45.746220"], ["updated_at", "2016-05-23 16:12:45.746220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.3ms) Completed 200 OK in 16ms (Views: 9.1ms | ActiveRecord: 0.8ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 16:12:45.769999"], ["updated_at", "2016-05-23 16:12:45.769999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (9.1ms) Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 16:12:45.793172"], ["updated_at", "2016-05-23 16:12:45.793172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.0ms) Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 16:12:45.814791"], ["updated_at", "2016-05-23 16:12:45.814791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 16:12:45.833745"], ["updated_at", "2016-05-23 16:12:45.833745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (19.2ms) Completed 200 OK in 36ms (Views: 23.2ms | ActiveRecord: 0.6ms)  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 16:12:45.889493"], ["updated_at", "2016-05-23 16:12:45.889493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.8ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (6.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (16.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (18.3ms) Completed 200 OK in 33ms (Views: 19.8ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 16:12:45.938367"], ["updated_at", "2016-05-23 16:12:45.938367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.6ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (17.5ms) Completed 200 OK in 21ms (Views: 19.6ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 16:12:45.976476"], ["updated_at", "2016-05-23 16:12:45.976476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 16:12:45.982254"], ["updated_at", "2016-05-23 16:12:45.982254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.0ms) Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.028218"], ["updated_at", "2016-05-23 16:12:46.028218"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-23 16:12:46.132635"], ["updated_at", "2016-05-23 16:12:46.132635"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.135549"], ["updated_at", "2016-05-23 16:12:46.135549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.138244"], ["updated_at", "2016-05-23 16:12:46.138244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-23 16:12:46.150655"], ["updated_at", "2016-05-23 16:12:46.150655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.152978"], ["updated_at", "2016-05-23 16:12:46.152978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-23 16:12:46.156153"], ["updated_at", "2016-05-23 16:12:46.156153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.158845"], ["updated_at", "2016-05-23 16:12:46.158845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-23 16:12:46.162065"], ["updated_at", "2016-05-23 16:12:46.162065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.163833"], ["updated_at", "2016-05-23 16:12:46.163833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 16:12:46.168162"], ["updated_at", "2016-05-23 16:12:46.168162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 16:12:46.152978"], ["updated_at", "2016-05-23 16:12:46.152978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.176645"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 16:12:46.158845"], ["updated_at", "2016-05-23 16:12:46.158845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.181330"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 16:12:46.163833"], ["updated_at", "2016-05-23 16:12:46.163833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.185525"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 16:12:46.189743"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.201193"], ["updated_at", "2016-05-23 16:12:46.201193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-23 16:12:46.204277"], ["updated_at", "2016-05-23 16:12:46.204277"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.207054"], ["updated_at", "2016-05-23 16:12:46.207054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.208857"], ["updated_at", "2016-05-23 16:12:46.208857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 16:12:46.214460"], ["updated_at", "2016-05-23 16:12:46.214460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 16:12:46.226042"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.234726"], ["updated_at", "2016-05-23 16:12:46.234726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-23 16:12:46.237464"], ["updated_at", "2016-05-23 16:12:46.237464"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.240561"], ["updated_at", "2016-05-23 16:12:46.240561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.242913"], ["updated_at", "2016-05-23 16:12:46.242913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-23 16:12:46.246013"], ["updated_at", "2016-05-23 16:12:46.246013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.248664"], ["updated_at", "2016-05-23 16:12:46.248664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-23 16:12:46.252242"], ["updated_at", "2016-05-23 16:12:46.252242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.254043"], ["updated_at", "2016-05-23 16:12:46.254043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-23 16:12:46.256983"], ["updated_at", "2016-05-23 16:12:46.256983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.258628"], ["updated_at", "2016-05-23 16:12:46.258628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 16:12:46.260575"], ["updated_at", "2016-05-23 16:12:46.260575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 16:12:46.248664"], ["updated_at", "2016-05-23 16:12:46.248664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.267586"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 16:12:46.254043"], ["updated_at", "2016-05-23 16:12:46.254043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.272107"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 16:12:46.258628"], ["updated_at", "2016-05-23 16:12:46.258628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.278814"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 16:12:46.281595"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.291486"], ["updated_at", "2016-05-23 16:12:46.291486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-23 16:12:46.299023"], ["updated_at", "2016-05-23 16:12:46.299023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-23 16:12:46.301623"], ["updated_at", "2016-05-23 16:12:46.301623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-23 16:12:46.304114"], ["updated_at", "2016-05-23 16:12:46.304114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-23 16:12:46.305439"], ["updated_at", "2016-05-23 16:12:46.305439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-23 16:12:46.307650"], ["updated_at", "2016-05-23 16:12:46.307650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-23 16:12:46.308910"], ["updated_at", "2016-05-23 16:12:46.308910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-23 16:12:46.320681"], ["updated_at", "2016-05-23 16:12:46.320681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-23 16:12:46.324344"], ["updated_at", "2016-05-23 16:12:46.324344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-23 16:12:46.328251"], ["updated_at", "2016-05-23 16:12:46.328251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.334612"], ["updated_at", "2016-05-23 16:12:46.334612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-23 16:12:46.337549"], ["updated_at", "2016-05-23 16:12:46.337549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-23 16:12:46.339427"], ["updated_at", "2016-05-23 16:12:46.339427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-23 16:12:46.341725"], ["updated_at", "2016-05-23 16:12:46.341725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-23 16:12:46.343864"], ["updated_at", "2016-05-23 16:12:46.343864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-23 16:12:46.347592"], ["updated_at", "2016-05-23 16:12:46.347592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-23 16:12:46.349196"], ["updated_at", "2016-05-23 16:12:46.349196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-23 16:12:46.354245"], ["updated_at", "2016-05-23 16:12:46.354245"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.356366"], ["updated_at", "2016-05-23 16:12:46.356366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (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 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-23 16:12:46.364501"], ["updated_at", "2016-05-23 16:12:46.364501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-23 16:12:46.370302"], ["updated_at", "2016-05-23 16:12:46.370302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-23 16:12:46.375958"], ["updated_at", "2016-05-23 16:12:46.375958"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.384677"], ["updated_at", "2016-05-23 16:12:46.384677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-05-23 16:12:46.393810"], ["updated_at", "2016-05-23 16:12:46.393810"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.395622"], ["updated_at", "2016-05-23 16:12:46.395622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.411582"], ["updated_at", "2016-05-23 16:12:46.411582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-23 16:12:46.414393"], ["updated_at", "2016-05-23 16:12:46.414393"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.416340"], ["updated_at", "2016-05-23 16:12:46.416340"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.418754"], ["updated_at", "2016-05-23 16:12:46.418754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-23 16:12:46.422403"], ["updated_at", "2016-05-23 16:12:46.422403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.424852"], ["updated_at", "2016-05-23 16:12:46.424852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-23 16:12:46.427726"], ["updated_at", "2016-05-23 16:12:46.427726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.429306"], ["updated_at", "2016-05-23 16:12:46.429306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-23 16:12:46.432083"], ["updated_at", "2016-05-23 16:12:46.432083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.433570"], ["updated_at", "2016-05-23 16:12:46.433570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 16:12:46.435823"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 16:12:46.437281"], ["updated_at", "2016-05-23 16:12:46.437281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: a458eae3-5acf-48aa-8310-df59f41ff473) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 16:12:46.424852"], ["updated_at", "2016-05-23 16:12:46.424852"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.450463"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 16:12:46.429306"], ["updated_at", "2016-05-23 16:12:46.429306"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.455054"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 16:12:46.433570"], ["updated_at", "2016-05-23 16:12:46.433570"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.460650"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 16:12:46.462989"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a458eae3-5acf-48aa-8310-df59f41ff473] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.48ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.476302"], ["updated_at", "2016-05-23 16:12:46.476302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-23 16:12:46.479202"], ["updated_at", "2016-05-23 16:12:46.479202"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.481824"], ["updated_at", "2016-05-23 16:12:46.481824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.483812"], ["updated_at", "2016-05-23 16:12:46.483812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-23 16:12:46.486531"], ["updated_at", "2016-05-23 16:12:46.486531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.488066"], ["updated_at", "2016-05-23 16:12:46.488066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-23 16:12:46.491261"], ["updated_at", "2016-05-23 16:12:46.491261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.492858"], ["updated_at", "2016-05-23 16:12:46.492858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-23 16:12:46.495513"], ["updated_at", "2016-05-23 16:12:46.495513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.496974"], ["updated_at", "2016-05-23 16:12:46.496974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 16:12:46.499248"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 16:12:46.500731"], ["updated_at", "2016-05-23 16:12:46.500731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 783dccb8-5277-4db9-83cf-594c9e3b37c0) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 16:12:46.488066"], ["updated_at", "2016-05-23 16:12:46.488066"]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.508842"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 16:12:46.492858"], ["updated_at", "2016-05-23 16:12:46.492858"]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.515342"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 16:12:46.496974"], ["updated_at", "2016-05-23 16:12:46.496974"]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.519881"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 16:12:46.522490"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [783dccb8-5277-4db9-83cf-594c9e3b37c0] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.31ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-23 16:12:46.529314"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 16:12:46.530886"], ["updated_at", "2016-05-23 16:12:46.530886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 58dcd69b-d30b-426c-8f68-3940d26362f0) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 16:12:46.488066"], ["updated_at", "2016-05-23 16:12:46.488066"]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-23 16:12:46.538863"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 16:12:46.492858"], ["updated_at", "2016-05-23 16:12:46.492858"]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-23 16:12:46.544171"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 16:12:46.496974"], ["updated_at", "2016-05-23 16:12:46.496974"]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-23 16:12:46.548858"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 16:12:46.551406"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [58dcd69b-d30b-426c-8f68-3940d26362f0] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.6ms Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.564801"], ["updated_at", "2016-05-23 16:12:46.564801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-23 16:12:46.567701"], ["updated_at", "2016-05-23 16:12:46.567701"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.569908"], ["updated_at", "2016-05-23 16:12:46.569908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.572076"], ["updated_at", "2016-05-23 16:12:46.572076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-23 16:12:46.575109"], ["updated_at", "2016-05-23 16:12:46.575109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.576945"], ["updated_at", "2016-05-23 16:12:46.576945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-23 16:12:46.580901"], ["updated_at", "2016-05-23 16:12:46.580901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.582663"], ["updated_at", "2016-05-23 16:12:46.582663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-23 16:12:46.585617"], ["updated_at", "2016-05-23 16:12:46.585617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 16:12:46.587164"], ["updated_at", "2016-05-23 16:12:46.587164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 16:12:46.589676"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 16:12:46.591527"], ["updated_at", "2016-05-23 16:12:46.591527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: dc402bb8-ff53-4997-92dd-954664037066) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 16:12:46.576945"], ["updated_at", "2016-05-23 16:12:46.576945"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.600521"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 16:12:46.582663"], ["updated_at", "2016-05-23 16:12:46.582663"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.605104"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 16:12:46.587164"], ["updated_at", "2016-05-23 16:12:46.587164"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 16:12:46.611181"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 16:12:46.613723"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dc402bb8-ff53-4997-92dd-954664037066] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.54ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-23 16:12:46.619505"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (9.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-23 16:12:46.641502"], ["updated_at", "2016-05-23 16:12:46.641502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-23 16:12:46.653180"], ["updated_at", "2016-05-23 16:12:46.653180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-23 16:12:46.659336"], ["updated_at", "2016-05-23 16:12:46.659336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-23 16:12:46.666178"], ["updated_at", "2016-05-23 16:12:46.666178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-23 16:12:46.672259"], ["updated_at", "2016-05-23 16:12:46.672259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-23 16:12:46.675090"], ["updated_at", "2016-05-23 16:12:46.675090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-23 16:12:46.681981"], ["updated_at", "2016-05-23 16:12:46.681981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-23 16:12:46.683912"], ["updated_at", "2016-05-23 16:12:46.683912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-05-23 16:12:46.690245"], ["updated_at", "2016-05-23 16:12:46.690245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-05-23 16:12:46.695735"], ["updated_at", "2016-05-23 16:12:46.695735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-23 16:12:46.702055"], ["updated_at", "2016-05-23 16:12:46.702055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.867208"], ["updated_at", "2016-05-23 16:12:46.867208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.889145"], ["updated_at", "2016-05-23 16:12:46.889145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-23 16:12:46.894731"], ["updated_at", "2016-05-23 16:12:46.894731"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.897639"], ["updated_at", "2016-05-23 16:12:46.897639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.903539"], ["updated_at", "2016-05-23 16:12:46.903539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-23 16:12:46.909410"], ["updated_at", "2016-05-23 16:12:46.909410"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.911512"], ["updated_at", "2016-05-23 16:12:46.911512"]]  (0.1ms) 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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.4ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-23 16:12:46.916012"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.6ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-23 16:12:46.933257"], ["updated_at", "2016-05-23 16:12:46.933257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.938984"], ["updated_at", "2016-05-23 16:12:46.938984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-23 16:12:46.942913"], ["updated_at", "2016-05-23 16:12:46.942913"]] SQL (0.4ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.945769"], ["updated_at", "2016-05-23 16:12:46.945769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:46.949537"], ["updated_at", "2016-05-23 16:12:46.949537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:46.974316"], ["updated_at", "2016-05-23 16:12:46.974316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-05-23 16:12:46.978247"], ["updated_at", "2016-05-23 16:12:46.978247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (1.5ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-23 16:12:47.033628"], ["updated_at", "2016-05-23 16:12:47.033628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:47.053349"], ["updated_at", "2016-05-23 16:12:47.053349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.6ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-23 16:12:47.056321"], ["updated_at", "2016-05-23 16:12:47.056321"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:47.060478"], ["updated_at", "2016-05-23 16:12:47.060478"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-23 16:12:47.084882"], ["updated_at", "2016-05-23 16:12:47.084882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 16:12:47.088069"], ["updated_at", "2016-05-23 16:12:47.088069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-23 16:12:47.092240"], ["updated_at", "2016-05-23 16:12:47.092240"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:47.093950"], ["updated_at", "2016-05-23 16:12:47.093950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 16:12:47.095505"], ["updated_at", "2016-05-23 16:12:47.095505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-23 16:12:47.098201"], ["updated_at", "2016-05-23 16:12:47.098201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.4ms) DELETE FROM "pulitzer_content_element_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (1.6ms) DELETE FROM "pulitzer_posts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts';  (1.1ms) DELETE FROM "pulitzer_tags";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_tags';  (1.1ms) DELETE FROM "pulitzer_post_type_content_element_types";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_type_content_element_types';  (1.0ms) DELETE FROM "search_locations";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations';  (1.1ms) DELETE FROM "pulitzer_versions";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';  (1.0ms) DELETE FROM "pulitzer_content_elements";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements';  (1.1ms) DELETE FROM "pulitzer_post_tags";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (1.1ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (1.1ms) DELETE FROM "pulitzer_free_form_section_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_free_form_section_types';  (0.9ms) DELETE FROM "pulitzer_free_form_sections";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_free_form_sections';  (0.8ms) DELETE FROM "pulitzer_layouts";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_layouts';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 18:08:22.540373"], ["updated_at", "2016-05-23 18:08:22.540373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (7.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (31.6ms) Completed 200 OK in 68ms (Views: 43.1ms | ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 18:08:22.624204"], ["updated_at", "2016-05-23 18:08:22.624204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.7ms) Completed 200 OK in 17ms (Views: 9.6ms | ActiveRecord: 1.0ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 18:08:22.649933"], ["updated_at", "2016-05-23 18:08:22.649933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (10.3ms) Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 18:08:22.674645"], ["updated_at", "2016-05-23 18:08:22.674645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.8ms) Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 18:08:22.697288"], ["updated_at", "2016-05-23 18:08:22.697288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 18:08:22.718797"], ["updated_at", "2016-05-23 18:08:22.718797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (15.7ms) Completed 200 OK in 37ms (Views: 19.6ms | ActiveRecord: 0.9ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 18:08:22.772564"], ["updated_at", "2016-05-23 18:08:22.772564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (10.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (11.9ms) Completed 200 OK in 25ms (Views: 13.3ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 18:08:22.810580"], ["updated_at", "2016-05-23 18:08:22.810580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (14.9ms) Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 18:08:22.841407"], ["updated_at", "2016-05-23 18:08:22.841407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 18:08:22.845895"], ["updated_at", "2016-05-23 18:08:22.845895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.1ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:22.874576"], ["updated_at", "2016-05-23 18:08:22.874576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-23 18:08:22.993296"], ["updated_at", "2016-05-23 18:08:22.993296"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:22.996515"], ["updated_at", "2016-05-23 18:08:22.996515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:22.998686"], ["updated_at", "2016-05-23 18:08:22.998686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-23 18:08:23.012940"], ["updated_at", "2016-05-23 18:08:23.012940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.015540"], ["updated_at", "2016-05-23 18:08:23.015540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-23 18:08:23.019124"], ["updated_at", "2016-05-23 18:08:23.019124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.020728"], ["updated_at", "2016-05-23 18:08:23.020728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-23 18:08:23.023427"], ["updated_at", "2016-05-23 18:08:23.023427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.025010"], ["updated_at", "2016-05-23 18:08:23.025010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.030714"], ["updated_at", "2016-05-23 18:08:23.030714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.015540"], ["updated_at", "2016-05-23 18:08:23.015540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.041417"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.020728"], ["updated_at", "2016-05-23 18:08:23.020728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.047252"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.025010"], ["updated_at", "2016-05-23 18:08:23.025010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.052176"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.057797"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.068089"], ["updated_at", "2016-05-23 18:08:23.068089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-23 18:08:23.070809"], ["updated_at", "2016-05-23 18:08:23.070809"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.072822"], ["updated_at", "2016-05-23 18:08:23.072822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.075224"], ["updated_at", "2016-05-23 18:08:23.075224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.082896"], ["updated_at", "2016-05-23 18:08:23.082896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.4ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.100240"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.109515"], ["updated_at", "2016-05-23 18:08:23.109515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-23 18:08:23.112458"], ["updated_at", "2016-05-23 18:08:23.112458"]] SQL (0.4ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.115037"], ["updated_at", "2016-05-23 18:08:23.115037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.118632"], ["updated_at", "2016-05-23 18:08:23.118632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-23 18:08:23.122468"], ["updated_at", "2016-05-23 18:08:23.122468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.125037"], ["updated_at", "2016-05-23 18:08:23.125037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-23 18:08:23.130131"], ["updated_at", "2016-05-23 18:08:23.130131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.131842"], ["updated_at", "2016-05-23 18:08:23.131842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-23 18:08:23.136467"], ["updated_at", "2016-05-23 18:08:23.136467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.138579"], ["updated_at", "2016-05-23 18:08:23.138579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.140837"], ["updated_at", "2016-05-23 18:08:23.140837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.125037"], ["updated_at", "2016-05-23 18:08:23.125037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.150740"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.131842"], ["updated_at", "2016-05-23 18:08:23.131842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.157364"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.138579"], ["updated_at", "2016-05-23 18:08:23.138579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.162158"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.164533"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.174220"], ["updated_at", "2016-05-23 18:08:23.174220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-23 18:08:23.180601"], ["updated_at", "2016-05-23 18:08:23.180601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-23 18:08:23.183392"], ["updated_at", "2016-05-23 18:08:23.183392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-23 18:08:23.186180"], ["updated_at", "2016-05-23 18:08:23.186180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-23 18:08:23.187620"], ["updated_at", "2016-05-23 18:08:23.187620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-23 18:08:23.189770"], ["updated_at", "2016-05-23 18:08:23.189770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-23 18:08:23.191156"], ["updated_at", "2016-05-23 18:08:23.191156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.203243"], ["updated_at", "2016-05-23 18:08:23.203243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.206514"], ["updated_at", "2016-05-23 18:08:23.206514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.210516"], ["updated_at", "2016-05-23 18:08:23.210516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.216048"], ["updated_at", "2016-05-23 18:08:23.216048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-23 18:08:23.220141"], ["updated_at", "2016-05-23 18:08:23.220141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-23 18:08:23.222439"], ["updated_at", "2016-05-23 18:08:23.222439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-23 18:08:23.225589"], ["updated_at", "2016-05-23 18:08:23.225589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-23 18:08:23.226957"], ["updated_at", "2016-05-23 18:08:23.226957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-23 18:08:23.229104"], ["updated_at", "2016-05-23 18:08:23.229104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-23 18:08:23.230391"], ["updated_at", "2016-05-23 18:08:23.230391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-23 18:08:23.235941"], ["updated_at", "2016-05-23 18:08:23.235941"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.238204"], ["updated_at", "2016-05-23 18:08:23.238204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.247069"], ["updated_at", "2016-05-23 18:08:23.247069"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.254310"], ["updated_at", "2016-05-23 18:08:23.254310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.258797"], ["updated_at", "2016-05-23 18:08:23.258797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.268012"], ["updated_at", "2016-05-23 18:08:23.268012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-05-23 18:08:23.276760"], ["updated_at", "2016-05-23 18:08:23.276760"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.278551"], ["updated_at", "2016-05-23 18:08:23.278551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.299263"], ["updated_at", "2016-05-23 18:08:23.299263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-23 18:08:23.303372"], ["updated_at", "2016-05-23 18:08:23.303372"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.306376"], ["updated_at", "2016-05-23 18:08:23.306376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.308313"], ["updated_at", "2016-05-23 18:08:23.308313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-23 18:08:23.311685"], ["updated_at", "2016-05-23 18:08:23.311685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.313515"], ["updated_at", "2016-05-23 18:08:23.313515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-23 18:08:23.317866"], ["updated_at", "2016-05-23 18:08:23.317866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.319613"], ["updated_at", "2016-05-23 18:08:23.319613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-23 18:08:23.323319"], ["updated_at", "2016-05-23 18:08:23.323319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.325656"], ["updated_at", "2016-05-23 18:08:23.325656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 18:08:23.328651"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.330629"], ["updated_at", "2016-05-23 18:08:23.330629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 9d0bd738-fd1b-4d6b-b1e7-a025da378810) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.313515"], ["updated_at", "2016-05-23 18:08:23.313515"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.344778"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.319613"], ["updated_at", "2016-05-23 18:08:23.319613"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.350296"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.325656"], ["updated_at", "2016-05-23 18:08:23.325656"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.355244"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.357547"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.69ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.370959"], ["updated_at", "2016-05-23 18:08:23.370959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-23 18:08:23.373813"], ["updated_at", "2016-05-23 18:08:23.373813"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.375707"], ["updated_at", "2016-05-23 18:08:23.375707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.378027"], ["updated_at", "2016-05-23 18:08:23.378027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-23 18:08:23.380827"], ["updated_at", "2016-05-23 18:08:23.380827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.382476"], ["updated_at", "2016-05-23 18:08:23.382476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-23 18:08:23.385798"], ["updated_at", "2016-05-23 18:08:23.385798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.387310"], ["updated_at", "2016-05-23 18:08:23.387310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-23 18:08:23.390225"], ["updated_at", "2016-05-23 18:08:23.390225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.391854"], ["updated_at", "2016-05-23 18:08:23.391854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 18:08:23.394082"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.395547"], ["updated_at", "2016-05-23 18:08:23.395547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c91fbe82-27ae-493d-9eb0-d5007ca0e687) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.382476"], ["updated_at", "2016-05-23 18:08:23.382476"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.405354"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.387310"], ["updated_at", "2016-05-23 18:08:23.387310"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.410362"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.391854"], ["updated_at", "2016-05-23 18:08:23.391854"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.414801"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.418275"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.86ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-23 18:08:23.424802"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.426320"], ["updated_at", "2016-05-23 18:08:23.426320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ffcdc922-329d-4053-97c4-99b4fd9fd530) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.382476"], ["updated_at", "2016-05-23 18:08:23.382476"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-23 18:08:23.434009"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.387310"], ["updated_at", "2016-05-23 18:08:23.387310"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-23 18:08:23.438836"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.391854"], ["updated_at", "2016-05-23 18:08:23.391854"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-23 18:08:23.443297"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.445512"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.41ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.456777"], ["updated_at", "2016-05-23 18:08:23.456777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-23 18:08:23.459367"], ["updated_at", "2016-05-23 18:08:23.459367"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.461236"], ["updated_at", "2016-05-23 18:08:23.461236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.462764"], ["updated_at", "2016-05-23 18:08:23.462764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-23 18:08:23.465692"], ["updated_at", "2016-05-23 18:08:23.465692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.467234"], ["updated_at", "2016-05-23 18:08:23.467234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-23 18:08:23.470554"], ["updated_at", "2016-05-23 18:08:23.470554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.472096"], ["updated_at", "2016-05-23 18:08:23.472096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-23 18:08:23.474634"], ["updated_at", "2016-05-23 18:08:23.474634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.476056"], ["updated_at", "2016-05-23 18:08:23.476056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 18:08:23.478417"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.479954"], ["updated_at", "2016-05-23 18:08:23.479954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: cd16f517-0f3b-4bcb-9bd7-3129145a4eeb) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.467234"], ["updated_at", "2016-05-23 18:08:23.467234"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.488217"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.472096"], ["updated_at", "2016-05-23 18:08:23.472096"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.493519"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.476056"], ["updated_at", "2016-05-23 18:08:23.476056"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.497908"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.501655"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.28ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-23 18:08:23.507477"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-23 18:08:23.518227"], ["updated_at", "2016-05-23 18:08:23.518227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-23 18:08:23.528515"], ["updated_at", "2016-05-23 18:08:23.528515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-23 18:08:23.534124"], ["updated_at", "2016-05-23 18:08:23.534124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-23 18:08:23.538851"], ["updated_at", "2016-05-23 18:08:23.538851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-23 18:08:23.543859"], ["updated_at", "2016-05-23 18:08:23.543859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.545547"], ["updated_at", "2016-05-23 18:08:23.545547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-23 18:08:23.551662"], ["updated_at", "2016-05-23 18:08:23.551662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.554387"], ["updated_at", "2016-05-23 18:08:23.554387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-05-23 18:08:23.566731"], ["updated_at", "2016-05-23 18:08:23.566731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-05-23 18:08:23.571953"], ["updated_at", "2016-05-23 18:08:23.571953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-23 18:08:23.577702"], ["updated_at", "2016-05-23 18:08:23.577702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.722398"], ["updated_at", "2016-05-23 18:08:23.722398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.7ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.744469"], ["updated_at", "2016-05-23 18:08:23.744469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-23 18:08:23.747625"], ["updated_at", "2016-05-23 18:08:23.747625"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.751621"], ["updated_at", "2016-05-23 18:08:23.751621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.756712"], ["updated_at", "2016-05-23 18:08:23.756712"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-23 18:08:23.760610"], ["updated_at", "2016-05-23 18:08:23.760610"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.763264"], ["updated_at", "2016-05-23 18:08:23.763264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-23 18:08:23.768446"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-23 18:08:23.783157"], ["updated_at", "2016-05-23 18:08:23.783157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.789325"], ["updated_at", "2016-05-23 18:08:23.789325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-23 18:08:23.792975"], ["updated_at", "2016-05-23 18:08:23.792975"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.794688"], ["updated_at", "2016-05-23 18:08:23.794688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.796534"], ["updated_at", "2016-05-23 18:08:23.796534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.822162"], ["updated_at", "2016-05-23 18:08:23.822162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-05-23 18:08:23.825769"], ["updated_at", "2016-05-23 18:08:23.825769"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-23 18:08:23.881639"], ["updated_at", "2016-05-23 18:08:23.881639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.896165"], ["updated_at", "2016-05-23 18:08:23.896165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-23 18:08:23.900886"], ["updated_at", "2016-05-23 18:08:23.900886"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.903491"], ["updated_at", "2016-05-23 18:08:23.903491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-23 18:08:23.926371"], ["updated_at", "2016-05-23 18:08:23.926371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.928883"], ["updated_at", "2016-05-23 18:08:23.928883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-23 18:08:23.931601"], ["updated_at", "2016-05-23 18:08:23.931601"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.933226"], ["updated_at", "2016-05-23 18:08:23.933226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.935003"], ["updated_at", "2016-05-23 18:08:23.935003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.937791"], ["updated_at", "2016-05-23 18:08:23.937791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)  (0.9ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (1.0ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  (0.8ms) CREATE TABLE "pulitzer_layouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.8ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer, "layout_id" integer, "label" varchar)  (0.8ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar)  (0.8ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)   (0.7ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)  (0.1ms) select sqlite_version(*)  (1.1ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (1.0ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_id" integer, "hierarchical" boolean DEFAULT 'f' NOT NULL)   (0.8ms) CREATE INDEX "index_pulitzer_tags_on_hierarchical" ON "pulitzer_tags" ("hierarchical")  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160609214139') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.1ms) begin transaction  (0.1ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQLite3::SQLException: table "pulitzer_post_types" already exists: CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) rollback transaction  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618224344"]]  (0.8ms) commit transaction Migrating to CreatePulitzerContentElementTypes (20150618225402)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618225402"]]  (0.7ms) commit transaction Migrating to CreatePulitzerPosts (20150619204615)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204615"]]  (0.8ms) commit transaction Migrating to CreatePulitzerContentElements (20150619204708)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "post_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204708"]]  (0.8ms) commit transaction Migrating to CreatePulitzerTags (20150619213436)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213436"]]  (0.7ms) commit transaction Migrating to CreatePulitzerPostTags (20150619213457)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213457"]]  (0.7ms) commit transaction Migrating to CreatePulitzerPostTypeContentElementTypes (20150619215914)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619215914"]]  (0.8ms) commit transaction Migrating to AddPluralAndTemplateToPulitzerPostTypes (20150629195832)  (0.1ms) begin transaction  (2.3ms) ALTER TABLE "pulitzer_post_types" ADD "plural" boolean  (0.3ms) ALTER TABLE "pulitzer_post_types" ADD "template" boolean SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150629195832"]]  (1.7ms) commit transaction Migrating to AddPulitzerContentElementTypes (20150702150819)  (0.1ms) begin transaction Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", "2016-07-05 17:34:38.115129"], ["updated_at", "2016-07-05 17:34:38.115129"]] Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-07-05 17:34:38.117322"], ["updated_at", "2016-07-05 17:34:38.117322"]] Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-07-05 17:34:38.118819"], ["updated_at", "2016-07-05 17:34:38.118819"]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150702150819"]]  (0.8ms) commit transaction Migrating to AddSlugToPulitzerPosts (20150724150230)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_posts" ADD "slug" varchar  (0.3ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150724150230"]]  (1.0ms) commit transaction Migrating to ChangeLabelTypeFromPulitzerPostTags (20150902212741)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "pulitzer_post_tags"  (0.4ms) DROP TABLE "pulitzer_post_tags"  (0.1ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "apulitzer_post_tags"  (3.1ms) DROP TABLE "apulitzer_post_tags" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150902212741"]]  (1.4ms) commit transaction Migrating to AddTextEditorToPulitzerPostTypeContentElementTypes (20151026180630)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "pulitzer_post_type_content_element_types" ADD "text_editor" varchar SQL (0.1ms) UPDATE "pulitzer_post_type_content_element_types" SET "text_editor" = 'None' WHERE "pulitzer_post_type_content_element_types"."id" IN (SELECT "pulitzer_post_type_content_element_types"."id" FROM "pulitzer_post_type_content_element_types" ORDER BY "pulitzer_post_type_content_element_types"."id" ASC) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151026180630"]]  (0.7ms) commit transaction Migrating to CreatePulitzerVersions (20151029194354)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029194354"]]  (1.2ms) commit transaction Migrating to ChangePostElementsToVersions (20151029220558)  (0.1ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "apulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_content_elements"  (0.5ms) DROP TABLE "pulitzer_content_elements"  (0.1ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "apulitzer_content_elements"  (0.1ms) DROP TABLE "apulitzer_content_elements"  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) SELECT * FROM "pulitzer_post_tags"  (0.4ms) DROP TABLE "pulitzer_post_tags"  (0.1ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "apulitzer_post_tags"  (0.1ms) DROP TABLE "apulitzer_post_tags" Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" ORDER BY "pulitzer_posts"."id" ASC LIMIT 1000 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029220558"]]  (5.8ms) commit transaction Migrating to AddPostTypeContentElementAttributesToContentElements (20151113183344)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "pulitzer_content_elements" ADD "text_editor" varchar  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "height" integer DEFAULT 100  (0.4ms) ALTER TABLE "pulitzer_content_elements" ADD "width" integer DEFAULT 100  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "sort_order" integer Scoped order and limit are ignored, it's forced to be batch order and batch size Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1000 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151113183344"]]  (2.5ms) commit transaction Migrating to ChangeTemplateToPulitzerPostTypes (20151116162508)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "template" boolean)   (0.0ms) SELECT * FROM "pulitzer_post_types"  (0.3ms) DROP TABLE "pulitzer_post_types"  (0.1ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean)  (0.0ms) SELECT * FROM "apulitzer_post_types"  (0.1ms) DROP TABLE "apulitzer_post_types"  (0.2ms) ALTER TABLE "pulitzer_post_types" ADD "kind" integer DEFAULT 0 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151116162508"]]  (1.1ms) commit transaction Migrating to AddKindToPulitzerContentElements (20151118031237)  (0.1ms) begin transaction  (0.8ms) ALTER TABLE "pulitzer_content_elements" ADD "kind" integer DEFAULT 0 SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151118031237"]]  (0.6ms) commit transaction Migrating to AddErrorsToVersion (20160122204201)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_versions" ADD "cloning_errors" jsonb SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160122204201"]]  (0.7ms) commit transaction Migrating to CreatePartials (20160511192041)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160511192041"]]  (0.8ms) commit transaction Migrating to AddParentIdToPulitzerTag (20160511201527)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_tags" ADD "parent_id" integer  (0.2ms) ALTER TABLE "pulitzer_tags" ADD "hierarchical" boolean DEFAULT 'f' NOT NULL  (0.1ms) CREATE INDEX "index_pulitzer_tags_on_hierarchical" ON "pulitzer_tags" ("hierarchical") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160511201527"]]  (1.1ms) commit transaction Migrating to AddPartialToContentElement (20160512214545)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_content_elements" ADD "partial_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160512214545"]]  (0.9ms) commit transaction Migrating to CreateFreeFormSectionType (20160513153209)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160513153209"]]  (0.6ms) commit transaction Migrating to CreateFreeFormSection (20160513153214)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160513153214"]]  (0.8ms) commit transaction Migrating to FixPostTypeKinds (20160516150237)  (0.1ms) begin transaction Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" IN (1, 2) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160516150237"]]  (0.7ms) commit transaction Migrating to CreateLayouts (20160517181706)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_layouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160517181706"]]  (0.8ms) commit transaction Migrating to AddLayoutToPartial (20160517182500)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_partials" ADD "layout_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160517182500"]]  (0.7ms) commit transaction Migrating to AddLabelToPartial (20160519181030)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_partials" ADD "label" varchar SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160519181030"]]  (0.7ms) commit transaction Migrating to RemoveTitleFromContentElements (20160609214139)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "apulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)   (0.1ms) SELECT * FROM "pulitzer_content_elements"  (0.3ms) DROP TABLE "pulitzer_content_elements"  (0.1ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)  (0.0ms) SELECT * FROM "apulitzer_content_elements"  (0.1ms) DROP TABLE "apulitzer_content_elements" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160609214139"]]  (0.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_pulitzer_posts_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_posts_on_slug' AND type='index'  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_pulitzer_tags_on_hierarchical' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_tags_on_hierarchical' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.0ms) DELETE FROM "pulitzer_content_element_types";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) 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.2ms) 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.8ms) 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.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-07-05 17:34:46.039212"], ["updated_at", "2016-07-05 17:34:46.039212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (7.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (26.4ms) Completed 200 OK in 61ms (Views: 37.6ms | ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-07-05 17:34:46.116160"], ["updated_at", "2016-07-05 17:34:46.116160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.2ms) Completed 200 OK in 15ms (Views: 8.9ms | ActiveRecord: 0.8ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-07-05 17:34:46.139393"], ["updated_at", "2016-07-05 17:34:46.139393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.3ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (9.2ms) Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-07-05 17:34:46.161768"], ["updated_at", "2016-07-05 17:34:46.161768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.3ms) Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-07-05 17:34:46.181655"], ["updated_at", "2016-07-05 17:34:46.181655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-07-05 17:34:46.201047"], ["updated_at", "2016-07-05 17:34:46.201047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.6ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (14.9ms) Completed 200 OK in 30ms (Views: 18.6ms | ActiveRecord: 1.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-07-05 17:34:46.247093"], ["updated_at", "2016-07-05 17:34:46.247093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.2ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (9.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (11.4ms) Completed 200 OK in 23ms (Views: 13.0ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-07-05 17:34:46.282809"], ["updated_at", "2016-07-05 17:34:46.282809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (13.2ms) Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-07-05 17:34:46.311098"], ["updated_at", "2016-07-05 17:34:46.311098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-07-05 17:34:46.314439"], ["updated_at", "2016-07-05 17:34:46.314439"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.7ms) Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.4ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-07-05 17:34:46.344641"], ["updated_at", "2016-07-05 17:34:46.344641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-07-05 17:34:46.348886"], ["updated_at", "2016-07-05 17:34:46.348886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-07-05 17:34:46.364001"], ["updated_at", "2016-07-05 17:34:46.364001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-07-05 17:34:46.366337"], ["updated_at", "2016-07-05 17:34:46.366337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-07-05 17:34:46.378083"], ["updated_at", "2016-07-05 17:34:46.378083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-07-05 17:34:46.380506"], ["updated_at", "2016-07-05 17:34:46.380506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-07-05 17:34:46.391543"], ["updated_at", "2016-07-05 17:34:46.391543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-07-05 17:34:46.403047"], ["updated_at", "2016-07-05 17:34:46.403047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (2.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (1.3ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-07-05 17:34:46.457015"], ["updated_at", "2016-07-05 17:34:46.457015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-07-05 17:34:46.468736"], ["updated_at", "2016-07-05 17:34:46.468736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-07-05 17:34:46.474960"], ["updated_at", "2016-07-05 17:34:46.474960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-07-05 17:34:46.489324"], ["updated_at", "2016-07-05 17:34:46.489324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.8ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-07-05 17:34:46.501492"], ["updated_at", "2016-07-05 17:34:46.501492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-07-05 17:34:46.513773"], ["updated_at", "2016-07-05 17:34:46.513773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-07-05 17:34:46.535699"], ["updated_at", "2016-07-05 17:34:46.535699"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 409 Conflict in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-07-05 17:34:46.548924"], ["updated_at", "2016-07-05 17:34:46.548924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.4ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-07-05 17:34:46.557284"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-07-05 17:34:46.563727"], ["updated_at", "2016-07-05 17:34:46.563727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-07-05 17:34:46.567353"], ["updated_at", "2016-07-05 17:34:46.567353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-07-05 17:34:46.579770"], ["updated_at", "2016-07-05 17:34:46.579770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-07-05 17:34:46.583567"], ["updated_at", "2016-07-05 17:34:46.583567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-07-05 17:34:46.596095"], ["updated_at", "2016-07-05 17:34:46.596095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-07-05 17:34:46.605661"], ["updated_at", "2016-07-05 17:34:46.605661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.3ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:46.626025"], ["updated_at", "2016-07-05 17:34:46.626025"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-07-05 17:34:46.722851"], ["updated_at", "2016-07-05 17:34:46.722851"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:46.726114"], ["updated_at", "2016-07-05 17:34:46.726114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:46.728313"], ["updated_at", "2016-07-05 17:34:46.728313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-07-05 17:34:46.741047"], ["updated_at", "2016-07-05 17:34:46.741047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-07-05 17:34:46.743363"], ["updated_at", "2016-07-05 17:34:46.743363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-07-05 17:34:46.745899"], ["updated_at", "2016-07-05 17:34:46.745899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-07-05 17:34:46.747217"], ["updated_at", "2016-07-05 17:34:46.747217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-07-05 17:34:46.749673"], ["updated_at", "2016-07-05 17:34:46.749673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-07-05 17:34:46.751206"], ["updated_at", "2016-07-05 17:34:46.751206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-07-05 17:34:46.755246"], ["updated_at", "2016-07-05 17:34:46.755246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-07-05 17:34:46.743363"], ["updated_at", "2016-07-05 17:34:46.743363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:46.763591"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-07-05 17:34:46.747217"], ["updated_at", "2016-07-05 17:34:46.747217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:46.768873"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-07-05 17:34:46.751206"], ["updated_at", "2016-07-05 17:34:46.751206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:46.775009"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-07-05 17:34:46.779527"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:46.789976"], ["updated_at", "2016-07-05 17:34:46.789976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-07-05 17:34:46.793107"], ["updated_at", "2016-07-05 17:34:46.793107"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:46.794943"], ["updated_at", "2016-07-05 17:34:46.794943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:46.796851"], ["updated_at", "2016-07-05 17:34:46.796851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-07-05 17:34:46.803368"], ["updated_at", "2016-07-05 17:34:46.803368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-07-05 17:34:46.817654"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:46.826780"], ["updated_at", "2016-07-05 17:34:46.826780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-07-05 17:34:46.829658"], ["updated_at", "2016-07-05 17:34:46.829658"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:46.832416"], ["updated_at", "2016-07-05 17:34:46.832416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:46.834482"], ["updated_at", "2016-07-05 17:34:46.834482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-07-05 17:34:46.837483"], ["updated_at", "2016-07-05 17:34:46.837483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-07-05 17:34:46.839171"], ["updated_at", "2016-07-05 17:34:46.839171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-07-05 17:34:46.842681"], ["updated_at", "2016-07-05 17:34:46.842681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-07-05 17:34:46.844613"], ["updated_at", "2016-07-05 17:34:46.844613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-07-05 17:34:46.847842"], ["updated_at", "2016-07-05 17:34:46.847842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-07-05 17:34:46.849872"], ["updated_at", "2016-07-05 17:34:46.849872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-07-05 17:34:46.851912"], ["updated_at", "2016-07-05 17:34:46.851912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-07-05 17:34:46.839171"], ["updated_at", "2016-07-05 17:34:46.839171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:46.858933"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-07-05 17:34:46.844613"], ["updated_at", "2016-07-05 17:34:46.844613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:46.864343"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-07-05 17:34:46.849872"], ["updated_at", "2016-07-05 17:34:46.849872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:46.870190"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-07-05 17:34:46.873365"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:46.883101"], ["updated_at", "2016-07-05 17:34:46.883101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-07-05 17:34:46.890441"], ["updated_at", "2016-07-05 17:34:46.890441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-07-05 17:34:46.893085"], ["updated_at", "2016-07-05 17:34:46.893085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-07-05 17:34:46.895666"], ["updated_at", "2016-07-05 17:34:46.895666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-07-05 17:34:46.897177"], ["updated_at", "2016-07-05 17:34:46.897177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-07-05 17:34:46.899295"], ["updated_at", "2016-07-05 17:34:46.899295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-07-05 17:34:46.900782"], ["updated_at", "2016-07-05 17:34:46.900782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-07-05 17:34:46.912851"], ["updated_at", "2016-07-05 17:34:46.912851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-07-05 17:34:46.917630"], ["updated_at", "2016-07-05 17:34:46.917630"]]  (0.0ms) RELEASE SAVEPOINT active_record_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 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-07-05 17:34:46.922320"], ["updated_at", "2016-07-05 17:34:46.922320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:46.927607"], ["updated_at", "2016-07-05 17:34:46.927607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-07-05 17:34:46.930530"], ["updated_at", "2016-07-05 17:34:46.930530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-07-05 17:34:46.932491"], ["updated_at", "2016-07-05 17:34:46.932491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-07-05 17:34:46.935322"], ["updated_at", "2016-07-05 17:34:46.935322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-07-05 17:34:46.937110"], ["updated_at", "2016-07-05 17:34:46.937110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-07-05 17:34:46.939433"], ["updated_at", "2016-07-05 17:34:46.939433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-07-05 17:34:46.940879"], ["updated_at", "2016-07-05 17:34:46.940879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-07-05 17:34:46.944246"], ["updated_at", "2016-07-05 17:34:46.944246"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:46.945979"], ["updated_at", "2016-07-05 17:34:46.945979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-07-05 17:34:46.952687"], ["updated_at", "2016-07-05 17:34:46.952687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-07-05 17:34:46.956438"], ["updated_at", "2016-07-05 17:34:46.956438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-07-05 17:34:46.960231"], ["updated_at", "2016-07-05 17:34:46.960231"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:46.968666"], ["updated_at", "2016-07-05 17:34:46.968666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-07-05 17:34:46.976203"], ["updated_at", "2016-07-05 17:34:46.976203"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:46.977882"], ["updated_at", "2016-07-05 17:34:46.977882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:46.995519"], ["updated_at", "2016-07-05 17:34:46.995519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-07-05 17:34:46.998177"], ["updated_at", "2016-07-05 17:34:46.998177"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.000091"], ["updated_at", "2016-07-05 17:34:47.000091"]]  (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", "2016-07-05 17:34:47.001953"], ["updated_at", "2016-07-05 17:34:47.001953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-07-05 17:34:47.006084"], ["updated_at", "2016-07-05 17:34:47.006084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.008207"], ["updated_at", "2016-07-05 17:34:47.008207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-07-05 17:34:47.012032"], ["updated_at", "2016-07-05 17:34:47.012032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.014598"], ["updated_at", "2016-07-05 17:34:47.014598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-07-05 17:34:47.019651"], ["updated_at", "2016-07-05 17:34:47.019651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.021913"], ["updated_at", "2016-07-05 17:34:47.021913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-07-05 17:34:47.026828"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-07-05 17:34:47.035461"], ["updated_at", "2016-07-05 17:34:47.035461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 4e1f22c0-9e45-408f-b725-0b2115625556) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-07-05 17:34:47.008207"], ["updated_at", "2016-07-05 17:34:47.008207"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:47.047742"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-07-05 17:34:47.014598"], ["updated_at", "2016-07-05 17:34:47.014598"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:47.052219"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-07-05 17:34:47.021913"], ["updated_at", "2016-07-05 17:34:47.021913"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:47.056600"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-07-05 17:34:47.059058"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e1f22c0-9e45-408f-b725-0b2115625556] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.72ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:47.073654"], ["updated_at", "2016-07-05 17:34:47.073654"]]  (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 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-07-05 17:34:47.076382"], ["updated_at", "2016-07-05 17:34:47.076382"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.078338"], ["updated_at", "2016-07-05 17:34:47.078338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.079888"], ["updated_at", "2016-07-05 17:34:47.079888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-07-05 17:34:47.083091"], ["updated_at", "2016-07-05 17:34:47.083091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.084663"], ["updated_at", "2016-07-05 17:34:47.084663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-07-05 17:34:47.087612"], ["updated_at", "2016-07-05 17:34:47.087612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.089525"], ["updated_at", "2016-07-05 17:34:47.089525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-07-05 17:34:47.092049"], ["updated_at", "2016-07-05 17:34:47.092049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.093397"], ["updated_at", "2016-07-05 17:34:47.093397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-07-05 17:34:47.095689"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-07-05 17:34:47.098116"], ["updated_at", "2016-07-05 17:34:47.098116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-07-05 17:34:47.084663"], ["updated_at", "2016-07-05 17:34:47.084663"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:47.105704"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-07-05 17:34:47.089525"], ["updated_at", "2016-07-05 17:34:47.089525"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:47.110194"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-07-05 17:34:47.093397"], ["updated_at", "2016-07-05 17:34:47.093397"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:47.114503"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-07-05 17:34:47.117837"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c0128e5d-69ac-4833-b60d-9e0ef8c1d8c6] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.12ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-07-05 17:34:47.125271"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-07-05 17:34:47.127697"], ["updated_at", "2016-07-05 17:34:47.127697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: a931436b-6a45-4e03-8186-b90001533b4d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-07-05 17:34:47.084663"], ["updated_at", "2016-07-05 17:34:47.084663"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-07-05 17:34:47.136172"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-07-05 17:34:47.089525"], ["updated_at", "2016-07-05 17:34:47.089525"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-07-05 17:34:47.141077"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-07-05 17:34:47.093397"], ["updated_at", "2016-07-05 17:34:47.093397"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-07-05 17:34:47.145739"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-07-05 17:34:47.148074"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a931436b-6a45-4e03-8186-b90001533b4d] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.56ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:47.158828"], ["updated_at", "2016-07-05 17:34:47.158828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-07-05 17:34:47.161206"], ["updated_at", "2016-07-05 17:34:47.161206"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.162829"], ["updated_at", "2016-07-05 17:34:47.162829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.164108"], ["updated_at", "2016-07-05 17:34:47.164108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-07-05 17:34:47.168330"], ["updated_at", "2016-07-05 17:34:47.168330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.170293"], ["updated_at", "2016-07-05 17:34:47.170293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-07-05 17:34:47.173339"], ["updated_at", "2016-07-05 17:34:47.173339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.175027"], ["updated_at", "2016-07-05 17:34:47.175027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-07-05 17:34:47.186827"], ["updated_at", "2016-07-05 17:34:47.186827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.188574"], ["updated_at", "2016-07-05 17:34:47.188574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-07-05 17:34:47.190735"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-07-05 17:34:47.194816"], ["updated_at", "2016-07-05 17:34:47.194816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 5bce1acb-d2b4-4143-99c1-8c9ec2465a2a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-07-05 17:34:47.170293"], ["updated_at", "2016-07-05 17:34:47.170293"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:47.204694"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-07-05 17:34:47.175027"], ["updated_at", "2016-07-05 17:34:47.175027"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:47.209830"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-07-05 17:34:47.188574"], ["updated_at", "2016-07-05 17:34:47.188574"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:47.214596"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-07-05 17:34:47.217529"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5bce1acb-d2b4-4143-99c1-8c9ec2465a2a] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.43ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-07-05 17:34:47.224365"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-07-05 17:34:47.234553"], ["updated_at", "2016-07-05 17:34:47.234553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:47.237228"], ["updated_at", "2016-07-05 17:34:47.237228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-07-05 17:34:47.239970"], ["updated_at", "2016-07-05 17:34:47.239970"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.242083"], ["updated_at", "2016-07-05 17:34:47.242083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.243634"], ["updated_at", "2016-07-05 17:34:47.243634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-07-05 17:34:47.246599"], ["updated_at", "2016-07-05 17:34:47.246599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.248258"], ["updated_at", "2016-07-05 17:34:47.248258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-07-05 17:34:47.251458"], ["updated_at", "2016-07-05 17:34:47.251458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.253099"], ["updated_at", "2016-07-05 17:34:47.253099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-07-05 17:34:47.256011"], ["updated_at", "2016-07-05 17:34:47.256011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.257415"], ["updated_at", "2016-07-05 17:34:47.257415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.264273"], ["updated_at", "2016-07-05 17:34:47.264273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-07-05 17:34:47.267096"], ["updated_at", "2016-07-05 17:34:47.267096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.269742"], ["updated_at", "2016-07-05 17:34:47.269742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-07-05 17:34:47.274831"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-07-05 17:34:47.276749"], ["updated_at", "2016-07-05 17:34:47.276749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c044d505-1cd2-4a44-9770-340fc0c5a4b9) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-07-05 17:34:47.248258"], ["updated_at", "2016-07-05 17:34:47.248258"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:47.284834"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-07-05 17:34:47.253099"], ["updated_at", "2016-07-05 17:34:47.253099"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:47.290217"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-07-05 17:34:47.257415"], ["updated_at", "2016-07-05 17:34:47.257415"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-07-05 17:34:47.294379"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-07-05 17:34:47.298066"], ["updated_at", "2016-07-05 17:34:47.298066"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-07-05 17:34:47.299839"], ["updated_at", "2016-07-05 17:34:47.299839"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-07-05 17:34:47.301237"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c044d505-1cd2-4a44-9770-340fc0c5a4b9] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.6ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-07-05 17:34:47.314197"], ["updated_at", "2016-07-05 17:34:47.314197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-07-05 17:34:47.325031"], ["updated_at", "2016-07-05 17:34:47.325031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-07-05 17:34:47.330118"], ["updated_at", "2016-07-05 17:34:47.330118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-07-05 17:34:47.334856"], ["updated_at", "2016-07-05 17:34:47.334856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-07-05 17:34:47.340103"], ["updated_at", "2016-07-05 17:34:47.340103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-07-05 17:34:47.341875"], ["updated_at", "2016-07-05 17:34:47.341875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-07-05 17:34:47.349761"], ["updated_at", "2016-07-05 17:34:47.349761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-07-05 17:34:47.351510"], ["updated_at", "2016-07-05 17:34:47.351510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-07-05 17:34:47.357035"], ["updated_at", "2016-07-05 17:34:47.357035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-07-05 17:34:47.361966"], ["updated_at", "2016-07-05 17:34:47.361966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-07-05 17:34:47.367627"], ["updated_at", "2016-07-05 17:34:47.367627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:47.544483"], ["updated_at", "2016-07-05 17:34:47.544483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:47.561212"], ["updated_at", "2016-07-05 17:34:47.561212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-07-05 17:34:47.564264"], ["updated_at", "2016-07-05 17:34:47.564264"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.569362"], ["updated_at", "2016-07-05 17:34:47.569362"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.574657"], ["updated_at", "2016-07-05 17:34:47.574657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-07-05 17:34:47.576804"], ["updated_at", "2016-07-05 17:34:47.576804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:47.584084"], ["updated_at", "2016-07-05 17:34:47.584084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-07-05 17:34:47.587191"], ["updated_at", "2016-07-05 17:34:47.587191"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.589493"], ["updated_at", "2016-07-05 17:34:47.589493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:47.594933"], ["updated_at", "2016-07-05 17:34:47.594933"]]  (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 1 [["slug", "winterfell-news-12"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-07-05 17:34:47.598880"], ["updated_at", "2016-07-05 17:34:47.598880"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.601619"], ["updated_at", "2016-07-05 17:34:47.601619"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-07-05 17:34:47.604834"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-07-05 17:34:47.610361"], ["updated_at", "2016-07-05 17:34:47.610361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:47.613662"], ["updated_at", "2016-07-05 17:34:47.613662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-07-05 17:34:47.616348"], ["updated_at", "2016-07-05 17:34:47.616348"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.618232"], ["updated_at", "2016-07-05 17:34:47.618232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.619880"], ["updated_at", "2016-07-05 17:34:47.619880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:47.642087"], ["updated_at", "2016-07-05 17:34:47.642087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-07-05 17:34:47.646364"], ["updated_at", "2016-07-05 17:34:47.646364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-07-05 17:34:47.694857"], ["updated_at", "2016-07-05 17:34:47.694857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-07-05 17:34:47.711932"], ["updated_at", "2016-07-05 17:34:47.711932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-07-05 17:34:47.717150"], ["updated_at", "2016-07-05 17:34:47.717150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:47.725706"], ["updated_at", "2016-07-05 17:34:47.725706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-07-05 17:34:47.728651"], ["updated_at", "2016-07-05 17:34:47.728651"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.730870"], ["updated_at", "2016-07-05 17:34:47.730870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-07-05 17:34:47.733485"], ["updated_at", "2016-07-05 17:34:47.733485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-07-05 17:34:47.735552"], ["updated_at", "2016-07-05 17:34:47.735552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.737952"], ["updated_at", "2016-07-05 17:34:47.737952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-07-05 17:34:47.746115"], ["updated_at", "2016-07-05 17:34:47.746115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-07-05 17:34:47.749479"], ["updated_at", "2016-07-05 17:34:47.749479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-07-05 17:34:47.756047"], ["updated_at", "2016-07-05 17:34:47.756047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-07-05 17:34:47.758583"], ["updated_at", "2016-07-05 17:34:47.758583"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-07-05 17:34:47.759680' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-07-05 17:34:47.762005"], ["updated_at", "2016-07-05 17:34:47.762005"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-07-05 17:34:47.762905' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-07-05 17:34:47.769962"], ["updated_at", "2016-07-05 17:34:47.769962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-07-05 17:34:47.772441"], ["updated_at", "2016-07-05 17:34:47.772441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-07-05 17:34:47.775020"], ["updated_at", "2016-07-05 17:34:47.775020"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-07-05 17:34:47.775851' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-07-05 17:34:47.780253"], ["updated_at", "2016-07-05 17:34:47.780253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-07-05 17:34:47.783086"], ["updated_at", "2016-07-05 17:34:47.783086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-07-05 17:34:47.786070"], ["updated_at", "2016-07-05 17:34:47.786070"]] SQL (0.2ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-07-05 17:34:47.786951' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-07-05 17:34:47.792105"], ["updated_at", "2016-07-05 17:34:47.792105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-07-05 17:34:47.794469"], ["updated_at", "2016-07-05 17:34:47.794469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-07-05 17:34:47.797478"], ["updated_at", "2016-07-05 17:34:47.797478"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-07-05 17:34:47.798343' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:47.803793"], ["updated_at", "2016-07-05 17:34:47.803793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-07-05 17:34:47.807584"], ["updated_at", "2016-07-05 17:34:47.807584"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.809778"], ["updated_at", "2016-07-05 17:34:47.809778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-07-05 17:34:47.830517"], ["updated_at", "2016-07-05 17:34:47.830517"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-07-05 17:34:47.834741"], ["updated_at", "2016-07-05 17:34:47.834741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-07-05 17:34:47.838098"], ["updated_at", "2016-07-05 17:34:47.838098"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.839568"], ["updated_at", "2016-07-05 17:34:47.839568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-07-05 17:34:47.841872"], ["updated_at", "2016-07-05 17:34:47.841872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-07-05 17:34:47.844346"], ["updated_at", "2016-07-05 17:34:47.844346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.3ms) 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.5ms) 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.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.0ms) 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.1ms) 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.2ms) 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.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.1ms) DELETE FROM "pulitzer_free_form_section_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_free_form_section_types';  (1.1ms) 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';  (1.2ms) 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.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:21:36.533940"], ["updated_at", "2016-09-16 17:21:36.533940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (8.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (29.5ms) Completed 200 OK in 68ms (Views: 41.5ms | ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:21:36.617717"], ["updated_at", "2016-09-16 17:21:36.617717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.3ms) Completed 200 OK in 15ms (Views: 9.3ms | ActiveRecord: 0.7ms) Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:21:36.641707"], ["updated_at", "2016-09-16 17:21:36.641707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (9.6ms) Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:21:36.664145"], ["updated_at", "2016-09-16 17:21:36.664145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.1ms) Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:21:36.685493"], ["updated_at", "2016-09-16 17:21:36.685493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:21:36.705054"], ["updated_at", "2016-09-16 17:21:36.705054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.2ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (13.8ms) Completed 200 OK in 28ms (Views: 18.1ms | ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:21:36.749453"], ["updated_at", "2016-09-16 17:21:36.749453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.4ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (11.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (14.4ms) Completed 200 OK in 27ms (Views: 16.1ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:21:36.790273"], ["updated_at", "2016-09-16 17:21:36.790273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (13.6ms) Completed 200 OK in 16ms (Views: 15.4ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:21:36.819583"], ["updated_at", "2016-09-16 17:21:36.819583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:21:36.823867"], ["updated_at", "2016-09-16 17:21:36.823867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.2ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.6ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-09-16 17:21:36.856375"], ["updated_at", "2016-09-16 17:21:36.856375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:21:36.860982"], ["updated_at", "2016-09-16 17:21:36.860982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-09-16 17:21:36.876152"], ["updated_at", "2016-09-16 17:21:36.876152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:21:36.879754"], ["updated_at", "2016-09-16 17:21:36.879754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.4ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-09-16 17:21:36.891229"], ["updated_at", "2016-09-16 17:21:36.891229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:21:36.893597"], ["updated_at", "2016-09-16 17:21:36.893597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.5ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-09-16 17:21:36.905099"], ["updated_at", "2016-09-16 17:21:36.905099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.3ms) Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-09-16 17:21:36.917270"], ["updated_at", "2016-09-16 17:21:36.917270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.4ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.9ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-09-16 17:21:36.987153"], ["updated_at", "2016-09-16 17:21:36.987153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.6ms) Completed 200 OK in 11ms (Views: 4.2ms | ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-09-16 17:21:37.005085"], ["updated_at", "2016-09-16 17:21:37.005085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-09-16 17:21:37.010863"], ["updated_at", "2016-09-16 17:21:37.010863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 7ms (Views: 2.7ms | ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-09-16 17:21:37.027969"], ["updated_at", "2016-09-16 17:21:37.027969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 409 Conflict in 4ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-09-16 17:21:37.040574"], ["updated_at", "2016-09-16 17:21:37.040574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-09-16 17:21:37.052651"], ["updated_at", "2016-09-16 17:21:37.052651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.4ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-09-16 17:21:37.077842"], ["updated_at", "2016-09-16 17:21:37.077842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 409 Conflict in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-09-16 17:21:37.088949"], ["updated_at", "2016-09-16 17:21:37.088949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.4ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-09-16 17:21:37.097067"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-09-16 17:21:37.103455"], ["updated_at", "2016-09-16 17:21:37.103455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-09-16 17:21:37.107842"], ["updated_at", "2016-09-16 17:21:37.107842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-09-16 17:21:37.120609"], ["updated_at", "2016-09-16 17:21:37.120609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-09-16 17:21:37.124116"], ["updated_at", "2016-09-16 17:21:37.124116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-09-16 17:21:37.137357"], ["updated_at", "2016-09-16 17:21:37.137357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-09-16 17:21:37.147499"], ["updated_at", "2016-09-16 17:21:37.147499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.4ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:37.170783"], ["updated_at", "2016-09-16 17:21:37.170783"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-09-16 17:21:37.263064"], ["updated_at", "2016-09-16 17:21:37.263064"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.266169"], ["updated_at", "2016-09-16 17:21:37.266169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.268261"], ["updated_at", "2016-09-16 17:21:37.268261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-09-16 17:21:37.280057"], ["updated_at", "2016-09-16 17:21:37.280057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.282319"], ["updated_at", "2016-09-16 17:21:37.282319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-09-16 17:21:37.285134"], ["updated_at", "2016-09-16 17:21:37.285134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.287331"], ["updated_at", "2016-09-16 17:21:37.287331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-09-16 17:21:37.291275"], ["updated_at", "2016-09-16 17:21:37.291275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.292938"], ["updated_at", "2016-09-16 17:21:37.292938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:21:37.298361"], ["updated_at", "2016-09-16 17:21:37.298361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:21:37.282319"], ["updated_at", "2016-09-16 17:21:37.282319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.306212"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:21:37.287331"], ["updated_at", "2016-09-16 17:21:37.287331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.310306"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:21:37.292938"], ["updated_at", "2016-09-16 17:21:37.292938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.314143"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:21:37.317785"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:37.328241"], ["updated_at", "2016-09-16 17:21:37.328241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-09-16 17:21:37.330885"], ["updated_at", "2016-09-16 17:21:37.330885"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.332688"], ["updated_at", "2016-09-16 17:21:37.332688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.334910"], ["updated_at", "2016-09-16 17:21:37.334910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:21:37.340344"], ["updated_at", "2016-09-16 17:21:37.340344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:21:37.350784"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:37.358488"], ["updated_at", "2016-09-16 17:21:37.358488"]]  (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 1 [["slug", "winterfell-news-3"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-09-16 17:21:37.361555"], ["updated_at", "2016-09-16 17:21:37.361555"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.363566"], ["updated_at", "2016-09-16 17:21:37.363566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.364960"], ["updated_at", "2016-09-16 17:21:37.364960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-09-16 17:21:37.367537"], ["updated_at", "2016-09-16 17:21:37.367537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.368986"], ["updated_at", "2016-09-16 17:21:37.368986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-09-16 17:21:37.372607"], ["updated_at", "2016-09-16 17:21:37.372607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.374305"], ["updated_at", "2016-09-16 17:21:37.374305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-09-16 17:21:37.376886"], ["updated_at", "2016-09-16 17:21:37.376886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.378278"], ["updated_at", "2016-09-16 17:21:37.378278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:21:37.380014"], ["updated_at", "2016-09-16 17:21:37.380014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:21:37.368986"], ["updated_at", "2016-09-16 17:21:37.368986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.386109"], ["id", 4]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:21:37.374305"], ["updated_at", "2016-09-16 17:21:37.374305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.392334"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:21:37.378278"], ["updated_at", "2016-09-16 17:21:37.378278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.396674"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:21:37.398883"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:37.408936"], ["updated_at", "2016-09-16 17:21:37.408936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-09-16 17:21:37.416616"], ["updated_at", "2016-09-16 17:21:37.416616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-09-16 17:21:37.419458"], ["updated_at", "2016-09-16 17:21:37.419458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-09-16 17:21:37.422441"], ["updated_at", "2016-09-16 17:21:37.422441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-09-16 17:21:37.423824"], ["updated_at", "2016-09-16 17:21:37.423824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-09-16 17:21:37.426136"], ["updated_at", "2016-09-16 17:21:37.426136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-09-16 17:21:37.427371"], ["updated_at", "2016-09-16 17:21:37.427371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-09-16 17:21:37.439355"], ["updated_at", "2016-09-16 17:21:37.439355"]]  (0.0ms) RELEASE SAVEPOINT active_record_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 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-09-16 17:21:37.443556"], ["updated_at", "2016-09-16 17:21:37.443556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-09-16 17:21:37.446731"], ["updated_at", "2016-09-16 17:21:37.446731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:37.451498"], ["updated_at", "2016-09-16 17:21:37.451498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-09-16 17:21:37.455449"], ["updated_at", "2016-09-16 17:21:37.455449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-09-16 17:21:37.457341"], ["updated_at", "2016-09-16 17:21:37.457341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-09-16 17:21:37.460165"], ["updated_at", "2016-09-16 17:21:37.460165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-09-16 17:21:37.461549"], ["updated_at", "2016-09-16 17:21:37.461549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-09-16 17:21:37.463691"], ["updated_at", "2016-09-16 17:21:37.463691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-09-16 17:21:37.464900"], ["updated_at", "2016-09-16 17:21:37.464900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-09-16 17:21:37.468114"], ["updated_at", "2016-09-16 17:21:37.468114"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.469953"], ["updated_at", "2016-09-16 17:21:37.469953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-09-16 17:21:37.476498"], ["updated_at", "2016-09-16 17:21:37.476498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-09-16 17:21:37.480586"], ["updated_at", "2016-09-16 17:21:37.480586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-09-16 17:21:37.485745"], ["updated_at", "2016-09-16 17:21:37.485745"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:37.494292"], ["updated_at", "2016-09-16 17:21:37.494292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-09-16 17:21:37.501103"], ["updated_at", "2016-09-16 17:21:37.501103"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.503249"], ["updated_at", "2016-09-16 17:21:37.503249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:37.519045"], ["updated_at", "2016-09-16 17:21:37.519045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-09-16 17:21:37.522105"], ["updated_at", "2016-09-16 17:21:37.522105"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.523972"], ["updated_at", "2016-09-16 17:21:37.523972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.525370"], ["updated_at", "2016-09-16 17:21:37.525370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-09-16 17:21:37.529056"], ["updated_at", "2016-09-16 17:21:37.529056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.530516"], ["updated_at", "2016-09-16 17:21:37.530516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-09-16 17:21:37.532670"], ["updated_at", "2016-09-16 17:21:37.532670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.533907"], ["updated_at", "2016-09-16 17:21:37.533907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-09-16 17:21:37.536103"], ["updated_at", "2016-09-16 17:21:37.536103"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.538439"], ["updated_at", "2016-09-16 17:21:37.538439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-09-16 17:21:37.543355"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:21:37.562635"], ["updated_at", "2016-09-16 17:21:37.562635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 400c47ca-b4fe-449b-895a-ad7477e31a9b) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:21:37.530516"], ["updated_at", "2016-09-16 17:21:37.530516"]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.577485"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:21:37.533907"], ["updated_at", "2016-09-16 17:21:37.533907"]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.582199"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:21:37.538439"], ["updated_at", "2016-09-16 17:21:37.538439"]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.586543"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:21:37.588965"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [400c47ca-b4fe-449b-895a-ad7477e31a9b] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.94ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:37.596959"], ["updated_at", "2016-09-16 17:21:37.596959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-09-16 17:21:37.599490"], ["updated_at", "2016-09-16 17:21:37.599490"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.601389"], ["updated_at", "2016-09-16 17:21:37.601389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.602941"], ["updated_at", "2016-09-16 17:21:37.602941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-09-16 17:21:37.607260"], ["updated_at", "2016-09-16 17:21:37.607260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.608915"], ["updated_at", "2016-09-16 17:21:37.608915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-09-16 17:21:37.611643"], ["updated_at", "2016-09-16 17:21:37.611643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.613070"], ["updated_at", "2016-09-16 17:21:37.613070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-09-16 17:21:37.615422"], ["updated_at", "2016-09-16 17:21:37.615422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.616788"], ["updated_at", "2016-09-16 17:21:37.616788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-09-16 17:21:37.618890"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:21:37.621898"], ["updated_at", "2016-09-16 17:21:37.621898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 459ed720-0562-491e-b7e9-36aeef4ff186) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:21:37.608915"], ["updated_at", "2016-09-16 17:21:37.608915"]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.630371"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:21:37.613070"], ["updated_at", "2016-09-16 17:21:37.613070"]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.634696"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:21:37.616788"], ["updated_at", "2016-09-16 17:21:37.616788"]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.640346"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:21:37.642836"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [459ed720-0562-491e-b7e9-36aeef4ff186] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.24ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:37.650918"], ["updated_at", "2016-09-16 17:21:37.650918"]]  (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 1 [["slug", "winterfell-news-7"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-09-16 17:21:37.654069"], ["updated_at", "2016-09-16 17:21:37.654069"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.656145"], ["updated_at", "2016-09-16 17:21:37.656145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.658656"], ["updated_at", "2016-09-16 17:21:37.658656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-09-16 17:21:37.662494"], ["updated_at", "2016-09-16 17:21:37.662494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.664037"], ["updated_at", "2016-09-16 17:21:37.664037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-09-16 17:21:37.666511"], ["updated_at", "2016-09-16 17:21:37.666511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.668094"], ["updated_at", "2016-09-16 17:21:37.668094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-09-16 17:21:37.671630"], ["updated_at", "2016-09-16 17:21:37.671630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.673119"], ["updated_at", "2016-09-16 17:21:37.673119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-09-16 17:21:37.675276"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:21:37.678318"], ["updated_at", "2016-09-16 17:21:37.678318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 96c7aee8-7078-4de9-8121-de9ec2b2bdf3) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:21:37.664037"], ["updated_at", "2016-09-16 17:21:37.664037"]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.686302"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:21:37.668094"], ["updated_at", "2016-09-16 17:21:37.668094"]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.691732"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:21:37.673119"], ["updated_at", "2016-09-16 17:21:37.673119"]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.695694"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:21:37.697813"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [96c7aee8-7078-4de9-8121-de9ec2b2bdf3] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.13ms  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-09-16 17:21:37.707384"], ["updated_at", "2016-09-16 17:21:37.707384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:37.710426"], ["updated_at", "2016-09-16 17:21:37.710426"]]  (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 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-09-16 17:21:37.713652"], ["updated_at", "2016-09-16 17:21:37.713652"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.715503"], ["updated_at", "2016-09-16 17:21:37.715503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:37.717066"], ["updated_at", "2016-09-16 17:21:37.717066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-09-16 17:21:37.719551"], ["updated_at", "2016-09-16 17:21:37.719551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.721002"], ["updated_at", "2016-09-16 17:21:37.721002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-09-16 17:21:37.723488"], ["updated_at", "2016-09-16 17:21:37.723488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.724814"], ["updated_at", "2016-09-16 17:21:37.724814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-09-16 17:21:37.727130"], ["updated_at", "2016-09-16 17:21:37.727130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.728480"], ["updated_at", "2016-09-16 17:21:37.728480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.735325"], ["updated_at", "2016-09-16 17:21:37.735325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-09-16 17:21:37.738151"], ["updated_at", "2016-09-16 17:21:37.738151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-09-16 17:21:37.740656"], ["updated_at", "2016-09-16 17:21:37.740656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-09-16 17:21:37.744646"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:21:37.746270"], ["updated_at", "2016-09-16 17:21:37.746270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: cd4e8a31-e3af-4656-a6eb-2c9194e7e928) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:21:37.721002"], ["updated_at", "2016-09-16 17:21:37.721002"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.755355"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:21:37.724814"], ["updated_at", "2016-09-16 17:21:37.724814"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.759655"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:21:37.728480"], ["updated_at", "2016-09-16 17:21:37.728480"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:21:37.764181"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-09-16 17:21:37.766787"], ["updated_at", "2016-09-16 17:21:37.766787"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-09-16 17:21:37.768206"], ["updated_at", "2016-09-16 17:21:37.768206"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:21:37.769492"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cd4e8a31-e3af-4656-a6eb-2c9194e7e928] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.9ms  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-09-16 17:21:37.779576"], ["updated_at", "2016-09-16 17:21:37.779576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-09-16 17:21:37.789981"], ["updated_at", "2016-09-16 17:21:37.789981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-09-16 17:21:37.794853"], ["updated_at", "2016-09-16 17:21:37.794853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-09-16 17:21:37.798952"], ["updated_at", "2016-09-16 17:21:37.798952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-09-16 17:21:37.803972"], ["updated_at", "2016-09-16 17:21:37.803972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:21:37.805878"], ["updated_at", "2016-09-16 17:21:37.805878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-09-16 17:21:37.813204"], ["updated_at", "2016-09-16 17:21:37.813204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:21:37.815156"], ["updated_at", "2016-09-16 17:21:37.815156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-09-16 17:21:37.822771"], ["updated_at", "2016-09-16 17:21:37.822771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-09-16 17:21:37.827878"], ["updated_at", "2016-09-16 17:21:37.827878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-09-16 17:21:37.832894"], ["updated_at", "2016-09-16 17:21:37.832894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:38.024350"], ["updated_at", "2016-09-16 17:21:38.024350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:38.044086"], ["updated_at", "2016-09-16 17:21:38.044086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-09-16 17:21:38.049273"], ["updated_at", "2016-09-16 17:21:38.049273"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:38.051631"], ["updated_at", "2016-09-16 17:21:38.051631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:38.054447"], ["updated_at", "2016-09-16 17:21:38.054447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-09-16 17:21:38.058020"], ["updated_at", "2016-09-16 17:21:38.058020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:38.064072"], ["updated_at", "2016-09-16 17:21:38.064072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-09-16 17:21:38.066679"], ["updated_at", "2016-09-16 17:21:38.066679"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:38.068900"], ["updated_at", "2016-09-16 17:21:38.068900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:38.074089"], ["updated_at", "2016-09-16 17:21:38.074089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-09-16 17:21:38.076937"], ["updated_at", "2016-09-16 17:21:38.076937"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:38.078948"], ["updated_at", "2016-09-16 17:21:38.078948"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-09-16 17:21:38.081471"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-09-16 17:21:38.086330"], ["updated_at", "2016-09-16 17:21:38.086330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:38.091503"], ["updated_at", "2016-09-16 17:21:38.091503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-09-16 17:21:38.094455"], ["updated_at", "2016-09-16 17:21:38.094455"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:38.096097"], ["updated_at", "2016-09-16 17:21:38.096097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:38.097606"], ["updated_at", "2016-09-16 17:21:38.097606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:38.122736"], ["updated_at", "2016-09-16 17:21:38.122736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-09-16 17:21:38.125886"], ["updated_at", "2016-09-16 17:21:38.125886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-09-16 17:21:38.177066"], ["updated_at", "2016-09-16 17:21:38.177066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:21:38.192397"], ["updated_at", "2016-09-16 17:21:38.192397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-09-16 17:21:38.197913"], ["updated_at", "2016-09-16 17:21:38.197913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:38.209227"], ["updated_at", "2016-09-16 17:21:38.209227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-09-16 17:21:38.212283"], ["updated_at", "2016-09-16 17:21:38.212283"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:38.214596"], ["updated_at", "2016-09-16 17:21:38.214596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-09-16 17:21:38.216477"], ["updated_at", "2016-09-16 17:21:38.216477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-09-16 17:21:38.218476"], ["updated_at", "2016-09-16 17:21:38.218476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-09-16 17:21:38.220946"], ["updated_at", "2016-09-16 17:21:38.220946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:21:38.228206"], ["updated_at", "2016-09-16 17:21:38.228206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-09-16 17:21:38.230625"], ["updated_at", "2016-09-16 17:21:38.230625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-09-16 17:21:38.236301"], ["updated_at", "2016-09-16 17:21:38.236301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-09-16 17:21:38.241207"], ["updated_at", "2016-09-16 17:21:38.241207"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:21:38.242329' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-09-16 17:21:38.257201"], ["updated_at", "2016-09-16 17:21:38.257201"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:21:38.258033' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:21:38.264372"], ["updated_at", "2016-09-16 17:21:38.264372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-09-16 17:21:38.266891"], ["updated_at", "2016-09-16 17:21:38.266891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-09-16 17:21:38.270001"], ["updated_at", "2016-09-16 17:21:38.270001"]] SQL (0.2ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:21:38.271138' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:21:38.276070"], ["updated_at", "2016-09-16 17:21:38.276070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-09-16 17:21:38.278572"], ["updated_at", "2016-09-16 17:21:38.278572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-09-16 17:21:38.281110"], ["updated_at", "2016-09-16 17:21:38.281110"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:21:38.281863' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:21:38.286362"], ["updated_at", "2016-09-16 17:21:38.286362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-09-16 17:21:38.289964"], ["updated_at", "2016-09-16 17:21:38.289964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-09-16 17:21:38.293025"], ["updated_at", "2016-09-16 17:21:38.293025"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:21:38.294256' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:38.298759"], ["updated_at", "2016-09-16 17:21:38.298759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-09-16 17:21:38.301388"], ["updated_at", "2016-09-16 17:21:38.301388"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:38.303575"], ["updated_at", "2016-09-16 17:21:38.303575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-09-16 17:21:38.323964"], ["updated_at", "2016-09-16 17:21:38.323964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:21:38.326713"], ["updated_at", "2016-09-16 17:21:38.326713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-09-16 17:21:38.329277"], ["updated_at", "2016-09-16 17:21:38.329277"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:38.330841"], ["updated_at", "2016-09-16 17:21:38.330841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:21:38.332351"], ["updated_at", "2016-09-16 17:21:38.332351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-09-16 17:21:38.334137"], ["updated_at", "2016-09-16 17:21:38.334137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.7ms) rollback transaction 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.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';  (1.0ms) DELETE FROM "pulitzer_tags";  (0.2ms) 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.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.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';  (0.8ms) 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';  (0.9ms) 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.9ms) 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.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.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.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:24:17.015175"], ["updated_at", "2016-09-16 17:24:17.015175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (7.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (20.9ms) Completed 200 OK in 47ms (Views: 29.5ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:24:17.075413"], ["updated_at", "2016-09-16 17:24:17.075413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.5ms) Completed 200 OK in 15ms (Views: 9.3ms | ActiveRecord: 0.8ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.6ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:24:17.099370"], ["updated_at", "2016-09-16 17:24:17.099370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (1.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (15.8ms) Completed 200 OK in 19ms (Views: 18.5ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:24:17.128222"], ["updated_at", "2016-09-16 17:24:17.128222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (3.9ms) Completed 200 OK in 9ms (Views: 4.3ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:24:17.147565"], ["updated_at", "2016-09-16 17:24:17.147565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:24:17.167885"], ["updated_at", "2016-09-16 17:24:17.167885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (21.4ms) Completed 200 OK in 33ms (Views: 25.1ms | ActiveRecord: 0.6ms)  (0.7ms) 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", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:24:17.216815"], ["updated_at", "2016-09-16 17:24:17.216815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (10.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (12.1ms) Completed 200 OK in 25ms (Views: 13.5ms | ActiveRecord: 1.0ms) Pulitzer::Partial Load (0.2ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:24:17.255533"], ["updated_at", "2016-09-16 17:24:17.255533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.3ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (11.7ms) Completed 200 OK in 16ms (Views: 13.3ms | ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:24:17.281863"], ["updated_at", "2016-09-16 17:24:17.281863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:24:17.285373"], ["updated_at", "2016-09-16 17:24:17.285373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (6.5ms) Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.5ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-09-16 17:24:17.315892"], ["updated_at", "2016-09-16 17:24:17.315892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:24:17.319299"], ["updated_at", "2016-09-16 17:24:17.319299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-09-16 17:24:17.334048"], ["updated_at", "2016-09-16 17:24:17.334048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:24:17.336461"], ["updated_at", "2016-09-16 17:24:17.336461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-09-16 17:24:17.346651"], ["updated_at", "2016-09-16 17:24:17.346651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:24:17.351151"], ["updated_at", "2016-09-16 17:24:17.351151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-09-16 17:24:17.361600"], ["updated_at", "2016-09-16 17:24:17.361600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-09-16 17:24:17.373035"], ["updated_at", "2016-09-16 17:24:17.373035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-09-16 17:24:17.409965"], ["updated_at", "2016-09-16 17:24:17.409965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.3ms) Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-09-16 17:24:17.422532"], ["updated_at", "2016-09-16 17:24:17.422532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-09-16 17:24:17.428030"], ["updated_at", "2016-09-16 17:24:17.428030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-09-16 17:24:17.444061"], ["updated_at", "2016-09-16 17:24:17.444061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.5ms) Completed 409 Conflict in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-09-16 17:24:17.455916"], ["updated_at", "2016-09-16 17:24:17.455916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-09-16 17:24:17.468275"], ["updated_at", "2016-09-16 17:24:17.468275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-09-16 17:24:17.485080"], ["updated_at", "2016-09-16 17:24:17.485080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.7ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-09-16 17:24:17.498446"], ["updated_at", "2016-09-16 17:24:17.498446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-09-16 17:24:17.506646"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-09-16 17:24:17.512562"], ["updated_at", "2016-09-16 17:24:17.512562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-09-16 17:24:17.516388"], ["updated_at", "2016-09-16 17:24:17.516388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-09-16 17:24:17.527959"], ["updated_at", "2016-09-16 17:24:17.527959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-09-16 17:24:17.532036"], ["updated_at", "2016-09-16 17:24:17.532036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 409 Conflict in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-09-16 17:24:17.544801"], ["updated_at", "2016-09-16 17:24:17.544801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-09-16 17:24:17.555244"], ["updated_at", "2016-09-16 17:24:17.555244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.0ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.4ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.8ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:17.576541"], ["updated_at", "2016-09-16 17:24:17.576541"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-09-16 17:24:17.659216"], ["updated_at", "2016-09-16 17:24:17.659216"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:17.662332"], ["updated_at", "2016-09-16 17:24:17.662332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:17.664997"], ["updated_at", "2016-09-16 17:24:17.664997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-09-16 17:24:17.676227"], ["updated_at", "2016-09-16 17:24:17.676227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:24:17.678456"], ["updated_at", "2016-09-16 17:24:17.678456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-09-16 17:24:17.682686"], ["updated_at", "2016-09-16 17:24:17.682686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:24:17.684496"], ["updated_at", "2016-09-16 17:24:17.684496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-09-16 17:24:17.687278"], ["updated_at", "2016-09-16 17:24:17.687278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:24:17.688821"], ["updated_at", "2016-09-16 17:24:17.688821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:24:17.692489"], ["updated_at", "2016-09-16 17:24:17.692489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:24:17.678456"], ["updated_at", "2016-09-16 17:24:17.678456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:17.699205"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:24:17.684496"], ["updated_at", "2016-09-16 17:24:17.684496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:17.703390"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:24:17.688821"], ["updated_at", "2016-09-16 17:24:17.688821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:17.707325"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:24:17.711556"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:17.721125"], ["updated_at", "2016-09-16 17:24:17.721125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-09-16 17:24:17.723941"], ["updated_at", "2016-09-16 17:24:17.723941"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:17.725938"], ["updated_at", "2016-09-16 17:24:17.725938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:17.727691"], ["updated_at", "2016-09-16 17:24:17.727691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:24:17.734285"], ["updated_at", "2016-09-16 17:24:17.734285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:24:17.748331"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:17.757405"], ["updated_at", "2016-09-16 17:24:17.757405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-09-16 17:24:17.759926"], ["updated_at", "2016-09-16 17:24:17.759926"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:17.761701"], ["updated_at", "2016-09-16 17:24:17.761701"]]  (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", "2016-09-16 17:24:17.763155"], ["updated_at", "2016-09-16 17:24:17.763155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-09-16 17:24:17.767953"], ["updated_at", "2016-09-16 17:24:17.767953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:24:17.769492"], ["updated_at", "2016-09-16 17:24:17.769492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-09-16 17:24:17.771900"], ["updated_at", "2016-09-16 17:24:17.771900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:24:17.773317"], ["updated_at", "2016-09-16 17:24:17.773317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-09-16 17:24:17.775646"], ["updated_at", "2016-09-16 17:24:17.775646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:24:17.777004"], ["updated_at", "2016-09-16 17:24:17.777004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:24:17.778742"], ["updated_at", "2016-09-16 17:24:17.778742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:24:17.769492"], ["updated_at", "2016-09-16 17:24:17.769492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:17.785168"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:24:17.773317"], ["updated_at", "2016-09-16 17:24:17.773317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:17.791139"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:24:17.777004"], ["updated_at", "2016-09-16 17:24:17.777004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:17.796128"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.2ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:24:17.800037"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:17.809312"], ["updated_at", "2016-09-16 17:24:17.809312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-09-16 17:24:17.815938"], ["updated_at", "2016-09-16 17:24:17.815938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-09-16 17:24:17.818978"], ["updated_at", "2016-09-16 17:24:17.818978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-09-16 17:24:17.821541"], ["updated_at", "2016-09-16 17:24:17.821541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-09-16 17:24:17.822827"], ["updated_at", "2016-09-16 17:24:17.822827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-09-16 17:24:17.824752"], ["updated_at", "2016-09-16 17:24:17.824752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-09-16 17:24:17.825864"], ["updated_at", "2016-09-16 17:24:17.825864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-09-16 17:24:17.837292"], ["updated_at", "2016-09-16 17:24:17.837292"]]  (0.0ms) RELEASE SAVEPOINT active_record_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 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-09-16 17:24:17.852962"], ["updated_at", "2016-09-16 17:24:17.852962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-09-16 17:24:17.856511"], ["updated_at", "2016-09-16 17:24:17.856511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:17.863136"], ["updated_at", "2016-09-16 17:24:17.863136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-09-16 17:24:17.866850"], ["updated_at", "2016-09-16 17:24:17.866850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-09-16 17:24:17.869141"], ["updated_at", "2016-09-16 17:24:17.869141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-09-16 17:24:17.871980"], ["updated_at", "2016-09-16 17:24:17.871980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-09-16 17:24:17.873411"], ["updated_at", "2016-09-16 17:24:17.873411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-09-16 17:24:17.875666"], ["updated_at", "2016-09-16 17:24:17.875666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-09-16 17:24:17.876911"], ["updated_at", "2016-09-16 17:24:17.876911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-09-16 17:24:17.881167"], ["updated_at", "2016-09-16 17:24:17.881167"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:17.883122"], ["updated_at", "2016-09-16 17:24:17.883122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-09-16 17:24:17.889657"], ["updated_at", "2016-09-16 17:24:17.889657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-09-16 17:24:17.893743"], ["updated_at", "2016-09-16 17:24:17.893743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-09-16 17:24:17.899288"], ["updated_at", "2016-09-16 17:24:17.899288"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:17.906828"], ["updated_at", "2016-09-16 17:24:17.906828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.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 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-09-16 17:24:17.916967"], ["updated_at", "2016-09-16 17:24:17.916967"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:17.919416"], ["updated_at", "2016-09-16 17:24:17.919416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:17.938205"], ["updated_at", "2016-09-16 17:24:17.938205"]]  (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 1 [["slug", "winterfell-news-5"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-09-16 17:24:17.941785"], ["updated_at", "2016-09-16 17:24:17.941785"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:17.944069"], ["updated_at", "2016-09-16 17:24:17.944069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:17.946191"], ["updated_at", "2016-09-16 17:24:17.946191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-09-16 17:24:17.952931"], ["updated_at", "2016-09-16 17:24:17.952931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:24:17.956253"], ["updated_at", "2016-09-16 17:24:17.956253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-09-16 17:24:17.959860"], ["updated_at", "2016-09-16 17:24:17.959860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:24:17.962227"], ["updated_at", "2016-09-16 17:24:17.962227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-09-16 17:24:17.965074"], ["updated_at", "2016-09-16 17:24:17.965074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:24:17.966863"], ["updated_at", "2016-09-16 17:24:17.966863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-09-16 17:24:17.973259"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:24:17.981113"], ["updated_at", "2016-09-16 17:24:17.981113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: d4709023-ef82-4abc-9173-de7ab3417145) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:24:17.956253"], ["updated_at", "2016-09-16 17:24:17.956253"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:17.994725"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:24:17.962227"], ["updated_at", "2016-09-16 17:24:17.962227"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:18.001742"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:24:17.966863"], ["updated_at", "2016-09-16 17:24:17.966863"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:18.007911"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:24:18.010539"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d4709023-ef82-4abc-9173-de7ab3417145] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.12ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:18.026918"], ["updated_at", "2016-09-16 17:24:18.026918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-09-16 17:24:18.029912"], ["updated_at", "2016-09-16 17:24:18.029912"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.032790"], ["updated_at", "2016-09-16 17:24:18.032790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.034962"], ["updated_at", "2016-09-16 17:24:18.034962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-09-16 17:24:18.038320"], ["updated_at", "2016-09-16 17:24:18.038320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:24:18.040219"], ["updated_at", "2016-09-16 17:24:18.040219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-09-16 17:24:18.043133"], ["updated_at", "2016-09-16 17:24:18.043133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:24:18.045003"], ["updated_at", "2016-09-16 17:24:18.045003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-09-16 17:24:18.048396"], ["updated_at", "2016-09-16 17:24:18.048396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:24:18.050095"], ["updated_at", "2016-09-16 17:24:18.050095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-09-16 17:24:18.052499"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:24:18.054936"], ["updated_at", "2016-09-16 17:24:18.054936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 7471b192-f04f-42db-859d-f98da5ae1a80) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:24:18.040219"], ["updated_at", "2016-09-16 17:24:18.040219"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:18.065495"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:24:18.045003"], ["updated_at", "2016-09-16 17:24:18.045003"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:18.071256"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:24:18.050095"], ["updated_at", "2016-09-16 17:24:18.050095"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:18.075893"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:24:18.078355"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7471b192-f04f-42db-859d-f98da5ae1a80] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.18ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-09-16 17:24:18.085942"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:24:18.087716"], ["updated_at", "2016-09-16 17:24:18.087716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:18.117265"], ["updated_at", "2016-09-16 17:24:18.117265"]]  (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 1 [["slug", "winterfell-news-7"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-09-16 17:24:18.120344"], ["updated_at", "2016-09-16 17:24:18.120344"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.122854"], ["updated_at", "2016-09-16 17:24:18.122854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.124662"], ["updated_at", "2016-09-16 17:24:18.124662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-09-16 17:24:18.127472"], ["updated_at", "2016-09-16 17:24:18.127472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:24:18.129312"], ["updated_at", "2016-09-16 17:24:18.129312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-09-16 17:24:18.132969"], ["updated_at", "2016-09-16 17:24:18.132969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:24:18.134727"], ["updated_at", "2016-09-16 17:24:18.134727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-09-16 17:24:18.137655"], ["updated_at", "2016-09-16 17:24:18.137655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:24:18.139212"], ["updated_at", "2016-09-16 17:24:18.139212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-09-16 17:24:18.141791"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:24:18.144470"], ["updated_at", "2016-09-16 17:24:18.144470"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: fec72131-5d51-4aca-ab70-95d8998f5beb) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:24:18.129312"], ["updated_at", "2016-09-16 17:24:18.129312"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:18.155058"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:24:18.134727"], ["updated_at", "2016-09-16 17:24:18.134727"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:18.160216"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:24:18.139212"], ["updated_at", "2016-09-16 17:24:18.139212"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:18.167349"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:24:18.170733"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fec72131-5d51-4aca-ab70-95d8998f5beb] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.46ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-09-16 17:24:18.177267"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-09-16 17:24:18.184368"], ["updated_at", "2016-09-16 17:24:18.184368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:18.187465"], ["updated_at", "2016-09-16 17:24:18.187465"]]  (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 1 [["slug", "winterfell-news-8"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-09-16 17:24:18.190610"], ["updated_at", "2016-09-16 17:24:18.190610"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.192719"], ["updated_at", "2016-09-16 17:24:18.192719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.194504"], ["updated_at", "2016-09-16 17:24:18.194504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-09-16 17:24:18.197426"], ["updated_at", "2016-09-16 17:24:18.197426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:24:18.199009"], ["updated_at", "2016-09-16 17:24:18.199009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-09-16 17:24:18.201978"], ["updated_at", "2016-09-16 17:24:18.201978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:24:18.203767"], ["updated_at", "2016-09-16 17:24:18.203767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-09-16 17:24:18.206544"], ["updated_at", "2016-09-16 17:24:18.206544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:24:18.208089"], ["updated_at", "2016-09-16 17:24:18.208089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-09-16 17:24:18.216958"], ["updated_at", "2016-09-16 17:24:18.216958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-09-16 17:24:18.220223"], ["updated_at", "2016-09-16 17:24:18.220223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-09-16 17:24:18.222544"], ["updated_at", "2016-09-16 17:24:18.222544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-09-16 17:24:18.226924"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:24:18.228794"], ["updated_at", "2016-09-16 17:24:18.228794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ea10def0-1683-4547-b229-a74c1accd932) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:24:18.199009"], ["updated_at", "2016-09-16 17:24:18.199009"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:18.239495"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:24:18.203767"], ["updated_at", "2016-09-16 17:24:18.203767"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:18.244668"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:24:18.208089"], ["updated_at", "2016-09-16 17:24:18.208089"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:24:18.249853"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-09-16 17:24:18.252955"], ["updated_at", "2016-09-16 17:24:18.252955"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-09-16 17:24:18.254640"], ["updated_at", "2016-09-16 17:24:18.254640"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:24:18.256413"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ea10def0-1683-4547-b229-a74c1accd932] Performed Pulitzer::CloneVersionJob from Inline(default) in 28.9ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-09-16 17:24:18.269546"], ["updated_at", "2016-09-16 17:24:18.269546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-09-16 17:24:18.281448"], ["updated_at", "2016-09-16 17:24:18.281448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-09-16 17:24:18.287065"], ["updated_at", "2016-09-16 17:24:18.287065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-09-16 17:24:18.292657"], ["updated_at", "2016-09-16 17:24:18.292657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-09-16 17:24:18.298694"], ["updated_at", "2016-09-16 17:24:18.298694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:24:18.301252"], ["updated_at", "2016-09-16 17:24:18.301252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-09-16 17:24:18.309250"], ["updated_at", "2016-09-16 17:24:18.309250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:24:18.311055"], ["updated_at", "2016-09-16 17:24:18.311055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-09-16 17:24:18.318527"], ["updated_at", "2016-09-16 17:24:18.318527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-09-16 17:24:18.323715"], ["updated_at", "2016-09-16 17:24:18.323715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-09-16 17:24:18.329124"], ["updated_at", "2016-09-16 17:24:18.329124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:18.456001"], ["updated_at", "2016-09-16 17:24:18.456001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:18.468750"], ["updated_at", "2016-09-16 17:24:18.468750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-09-16 17:24:18.472110"], ["updated_at", "2016-09-16 17:24:18.472110"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.493094"], ["updated_at", "2016-09-16 17:24:18.493094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.495272"], ["updated_at", "2016-09-16 17:24:18.495272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-09-16 17:24:18.497059"], ["updated_at", "2016-09-16 17:24:18.497059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:18.504612"], ["updated_at", "2016-09-16 17:24:18.504612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-09-16 17:24:18.507903"], ["updated_at", "2016-09-16 17:24:18.507903"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.510034"], ["updated_at", "2016-09-16 17:24:18.510034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:18.514970"], ["updated_at", "2016-09-16 17:24:18.514970"]]  (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 1 [["slug", "winterfell-news-12"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-09-16 17:24:18.518505"], ["updated_at", "2016-09-16 17:24:18.518505"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.523625"], ["updated_at", "2016-09-16 17:24:18.523625"]]  (0.1ms) 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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-09-16 17:24:18.526132"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (1.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-09-16 17:24:18.531094"], ["updated_at", "2016-09-16 17:24:18.531094"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:18.541597"], ["updated_at", "2016-09-16 17:24:18.541597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-09-16 17:24:18.544499"], ["updated_at", "2016-09-16 17:24:18.544499"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.546588"], ["updated_at", "2016-09-16 17:24:18.546588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.550426"], ["updated_at", "2016-09-16 17:24:18.550426"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:18.574978"], ["updated_at", "2016-09-16 17:24:18.574978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-09-16 17:24:18.578762"], ["updated_at", "2016-09-16 17:24:18.578762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-09-16 17:24:18.623036"], ["updated_at", "2016-09-16 17:24:18.623036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:24:18.636630"], ["updated_at", "2016-09-16 17:24:18.636630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-09-16 17:24:18.639093"], ["updated_at", "2016-09-16 17:24:18.639093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:18.646770"], ["updated_at", "2016-09-16 17:24:18.646770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-09-16 17:24:18.650519"], ["updated_at", "2016-09-16 17:24:18.650519"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.653112"], ["updated_at", "2016-09-16 17:24:18.653112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-09-16 17:24:18.654882"], ["updated_at", "2016-09-16 17:24:18.654882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-09-16 17:24:18.656937"], ["updated_at", "2016-09-16 17:24:18.656937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-09-16 17:24:18.659769"], ["updated_at", "2016-09-16 17:24:18.659769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:24:18.670932"], ["updated_at", "2016-09-16 17:24:18.670932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-09-16 17:24:18.673179"], ["updated_at", "2016-09-16 17:24:18.673179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-09-16 17:24:18.678161"], ["updated_at", "2016-09-16 17:24:18.678161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-09-16 17:24:18.680907"], ["updated_at", "2016-09-16 17:24:18.680907"]] SQL (0.4ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:24:18.682846' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-09-16 17:24:18.690298"], ["updated_at", "2016-09-16 17:24:18.690298"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:24:18.691412' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.5ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:24:18.700686"], ["updated_at", "2016-09-16 17:24:18.700686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-09-16 17:24:18.704058"], ["updated_at", "2016-09-16 17:24:18.704058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-09-16 17:24:18.706932"], ["updated_at", "2016-09-16 17:24:18.706932"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:24:18.707816' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:24:18.712009"], ["updated_at", "2016-09-16 17:24:18.712009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-09-16 17:24:18.714689"], ["updated_at", "2016-09-16 17:24:18.714689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-09-16 17:24:18.717506"], ["updated_at", "2016-09-16 17:24:18.717506"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:24:18.718436' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:24:18.723342"], ["updated_at", "2016-09-16 17:24:18.723342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-09-16 17:24:18.726256"], ["updated_at", "2016-09-16 17:24:18.726256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-09-16 17:24:18.729595"], ["updated_at", "2016-09-16 17:24:18.729595"]] SQL (0.2ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:24:18.730423' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:18.737831"], ["updated_at", "2016-09-16 17:24:18.737831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-09-16 17:24:18.740362"], ["updated_at", "2016-09-16 17:24:18.740362"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.742295"], ["updated_at", "2016-09-16 17:24:18.742295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-09-16 17:24:18.760238"], ["updated_at", "2016-09-16 17:24:18.760238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:24:18.762890"], ["updated_at", "2016-09-16 17:24:18.762890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-09-16 17:24:18.766166"], ["updated_at", "2016-09-16 17:24:18.766166"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.768044"], ["updated_at", "2016-09-16 17:24:18.768044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:24:18.769963"], ["updated_at", "2016-09-16 17:24:18.769963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-09-16 17:24:18.773195"], ["updated_at", "2016-09-16 17:24:18.773195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.5ms) 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.7ms) 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';  (0.7ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (0.8ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:26:33.221587"], ["updated_at", "2016-09-16 17:26:33.221587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (4.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (20.0ms) Completed 200 OK in 49ms (Views: 29.8ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:26:33.284802"], ["updated_at", "2016-09-16 17:26:33.284802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (6.2ms) Completed 200 OK in 14ms (Views: 7.7ms | ActiveRecord: 0.8ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:26:33.307412"], ["updated_at", "2016-09-16 17:26:33.307412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (8.5ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:26:33.327563"], ["updated_at", "2016-09-16 17:26:33.327563"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.3ms) Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-09-16 17:26:33.350075"], ["updated_at", "2016-09-16 17:26:33.350075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:26:33.366737"], ["updated_at", "2016-09-16 17:26:33.366737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (25.8ms) Completed 200 OK in 38ms (Views: 29.5ms | ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:26:33.420380"], ["updated_at", "2016-09-16 17:26:33.420380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (11.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (13.3ms) Completed 200 OK in 24ms (Views: 14.5ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:26:33.457679"], ["updated_at", "2016-09-16 17:26:33.457679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.0ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (12.8ms) Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:26:33.485586"], ["updated_at", "2016-09-16 17:26:33.485586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-09-16 17:26:33.489318"], ["updated_at", "2016-09-16 17:26:33.489318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.0ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-09-16 17:26:33.517484"], ["updated_at", "2016-09-16 17:26:33.517484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:26:33.521965"], ["updated_at", "2016-09-16 17:26:33.521965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-09-16 17:26:33.538605"], ["updated_at", "2016-09-16 17:26:33.538605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:26:33.540949"], ["updated_at", "2016-09-16 17:26:33.540949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-09-16 17:26:33.551964"], ["updated_at", "2016-09-16 17:26:33.551964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:26:33.554222"], ["updated_at", "2016-09-16 17:26:33.554222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-09-16 17:26:33.564287"], ["updated_at", "2016-09-16 17:26:33.564287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-09-16 17:26:33.575558"], ["updated_at", "2016-09-16 17:26:33.575558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-09-16 17:26:33.617598"], ["updated_at", "2016-09-16 17:26:33.617598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-09-16 17:26:33.628938"], ["updated_at", "2016-09-16 17:26:33.628938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-09-16 17:26:33.634999"], ["updated_at", "2016-09-16 17:26:33.634999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-09-16 17:26:33.649263"], ["updated_at", "2016-09-16 17:26:33.649263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.8ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-09-16 17:26:33.661842"], ["updated_at", "2016-09-16 17:26:33.661842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-09-16 17:26:33.674070"], ["updated_at", "2016-09-16 17:26:33.674070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-09-16 17:26:33.691352"], ["updated_at", "2016-09-16 17:26:33.691352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-09-16 17:26:33.702355"], ["updated_at", "2016-09-16 17:26:33.702355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.4ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-09-16 17:26:33.709776"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-09-16 17:26:33.717038"], ["updated_at", "2016-09-16 17:26:33.717038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-09-16 17:26:33.720695"], ["updated_at", "2016-09-16 17:26:33.720695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-09-16 17:26:33.732229"], ["updated_at", "2016-09-16 17:26:33.732229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-09-16 17:26:33.736133"], ["updated_at", "2016-09-16 17:26:33.736133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-09-16 17:26:33.749990"], ["updated_at", "2016-09-16 17:26:33.749990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-09-16 17:26:33.759988"], ["updated_at", "2016-09-16 17:26:33.759988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.4ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.8ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:33.782634"], ["updated_at", "2016-09-16 17:26:33.782634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-09-16 17:26:33.875161"], ["updated_at", "2016-09-16 17:26:33.875161"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:33.878014"], ["updated_at", "2016-09-16 17:26:33.878014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:33.880727"], ["updated_at", "2016-09-16 17:26:33.880727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-09-16 17:26:33.892215"], ["updated_at", "2016-09-16 17:26:33.892215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:26:33.895090"], ["updated_at", "2016-09-16 17:26:33.895090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-09-16 17:26:33.899177"], ["updated_at", "2016-09-16 17:26:33.899177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:26:33.900805"], ["updated_at", "2016-09-16 17:26:33.900805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-09-16 17:26:33.903685"], ["updated_at", "2016-09-16 17:26:33.903685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:26:33.905456"], ["updated_at", "2016-09-16 17:26:33.905456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:26:33.909253"], ["updated_at", "2016-09-16 17:26:33.909253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:26:33.895090"], ["updated_at", "2016-09-16 17:26:33.895090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:33.916519"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:26:33.900805"], ["updated_at", "2016-09-16 17:26:33.900805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:33.920823"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:26:33.905456"], ["updated_at", "2016-09-16 17:26:33.905456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:33.924830"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:26:33.928676"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:33.938132"], ["updated_at", "2016-09-16 17:26:33.938132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-09-16 17:26:33.940623"], ["updated_at", "2016-09-16 17:26:33.940623"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:33.942644"], ["updated_at", "2016-09-16 17:26:33.942644"]]  (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", "2016-09-16 17:26:33.944422"], ["updated_at", "2016-09-16 17:26:33.944422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:26:33.951179"], ["updated_at", "2016-09-16 17:26:33.951179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.4ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:26:33.967537"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:33.976688"], ["updated_at", "2016-09-16 17:26:33.976688"]]  (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 1 [["slug", "winterfell-news-3"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-09-16 17:26:33.980292"], ["updated_at", "2016-09-16 17:26:33.980292"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:33.982975"], ["updated_at", "2016-09-16 17:26:33.982975"]]  (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", "2016-09-16 17:26:33.984801"], ["updated_at", "2016-09-16 17:26:33.984801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-09-16 17:26:33.987189"], ["updated_at", "2016-09-16 17:26:33.987189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:26:33.988660"], ["updated_at", "2016-09-16 17:26:33.988660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-09-16 17:26:33.992112"], ["updated_at", "2016-09-16 17:26:33.992112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:26:33.994321"], ["updated_at", "2016-09-16 17:26:33.994321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-09-16 17:26:33.997925"], ["updated_at", "2016-09-16 17:26:33.997925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:26:33.999831"], ["updated_at", "2016-09-16 17:26:33.999831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:26:34.002409"], ["updated_at", "2016-09-16 17:26:34.002409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:26:33.988660"], ["updated_at", "2016-09-16 17:26:33.988660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.009063"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:26:33.994321"], ["updated_at", "2016-09-16 17:26:33.994321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.015958"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:26:33.999831"], ["updated_at", "2016-09-16 17:26:33.999831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.020604"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:26:34.022953"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.031822"], ["updated_at", "2016-09-16 17:26:34.031822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-09-16 17:26:34.040059"], ["updated_at", "2016-09-16 17:26:34.040059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-09-16 17:26:34.042825"], ["updated_at", "2016-09-16 17:26:34.042825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-09-16 17:26:34.045671"], ["updated_at", "2016-09-16 17:26:34.045671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-09-16 17:26:34.047931"], ["updated_at", "2016-09-16 17:26:34.047931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-09-16 17:26:34.050783"], ["updated_at", "2016-09-16 17:26:34.050783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-09-16 17:26:34.052336"], ["updated_at", "2016-09-16 17:26:34.052336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-09-16 17:26:34.065098"], ["updated_at", "2016-09-16 17:26:34.065098"]]  (0.1ms) RELEASE SAVEPOINT active_record_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 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-09-16 17:26:34.081762"], ["updated_at", "2016-09-16 17:26:34.081762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-09-16 17:26:34.085360"], ["updated_at", "2016-09-16 17:26:34.085360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.090779"], ["updated_at", "2016-09-16 17:26:34.090779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-09-16 17:26:34.093823"], ["updated_at", "2016-09-16 17:26:34.093823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-09-16 17:26:34.095613"], ["updated_at", "2016-09-16 17:26:34.095613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-09-16 17:26:34.099249"], ["updated_at", "2016-09-16 17:26:34.099249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-09-16 17:26:34.100721"], ["updated_at", "2016-09-16 17:26:34.100721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-09-16 17:26:34.103616"], ["updated_at", "2016-09-16 17:26:34.103616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-09-16 17:26:34.105316"], ["updated_at", "2016-09-16 17:26:34.105316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-09-16 17:26:34.109345"], ["updated_at", "2016-09-16 17:26:34.109345"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.111356"], ["updated_at", "2016-09-16 17:26:34.111356"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-09-16 17:26:34.118410"], ["updated_at", "2016-09-16 17:26:34.118410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-09-16 17:26:34.123506"], ["updated_at", "2016-09-16 17:26:34.123506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-09-16 17:26:34.129274"], ["updated_at", "2016-09-16 17:26:34.129274"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.137545"], ["updated_at", "2016-09-16 17:26:34.137545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (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 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-09-16 17:26:34.146091"], ["updated_at", "2016-09-16 17:26:34.146091"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.147975"], ["updated_at", "2016-09-16 17:26:34.147975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.165626"], ["updated_at", "2016-09-16 17:26:34.165626"]]  (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 1 [["slug", "winterfell-news-5"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-09-16 17:26:34.168531"], ["updated_at", "2016-09-16 17:26:34.168531"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.170506"], ["updated_at", "2016-09-16 17:26:34.170506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.173133"], ["updated_at", "2016-09-16 17:26:34.173133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-09-16 17:26:34.176187"], ["updated_at", "2016-09-16 17:26:34.176187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.177756"], ["updated_at", "2016-09-16 17:26:34.177756"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-09-16 17:26:34.182940"], ["updated_at", "2016-09-16 17:26:34.182940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.184631"], ["updated_at", "2016-09-16 17:26:34.184631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-09-16 17:26:34.187534"], ["updated_at", "2016-09-16 17:26:34.187534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.189186"], ["updated_at", "2016-09-16 17:26:34.189186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-09-16 17:26:34.194232"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:26:34.203003"], ["updated_at", "2016-09-16 17:26:34.203003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 75746387-3deb-40ba-96fe-04be06eb8d04) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:26:34.177756"], ["updated_at", "2016-09-16 17:26:34.177756"]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.215519"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:26:34.184631"], ["updated_at", "2016-09-16 17:26:34.184631"]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.220406"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:26:34.189186"], ["updated_at", "2016-09-16 17:26:34.189186"]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.225299"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:26:34.228367"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [75746387-3deb-40ba-96fe-04be06eb8d04] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.5ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.242842"], ["updated_at", "2016-09-16 17:26:34.242842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-09-16 17:26:34.245625"], ["updated_at", "2016-09-16 17:26:34.245625"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.247977"], ["updated_at", "2016-09-16 17:26:34.247977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.250084"], ["updated_at", "2016-09-16 17:26:34.250084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-09-16 17:26:34.252740"], ["updated_at", "2016-09-16 17:26:34.252740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.254411"], ["updated_at", "2016-09-16 17:26:34.254411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-09-16 17:26:34.257165"], ["updated_at", "2016-09-16 17:26:34.257165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.258651"], ["updated_at", "2016-09-16 17:26:34.258651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-09-16 17:26:34.261280"], ["updated_at", "2016-09-16 17:26:34.261280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.263594"], ["updated_at", "2016-09-16 17:26:34.263594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-09-16 17:26:34.266210"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:26:34.268657"], ["updated_at", "2016-09-16 17:26:34.268657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 65ce5b03-dc15-4331-993c-861237c6acb8) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:26:34.254411"], ["updated_at", "2016-09-16 17:26:34.254411"]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.277651"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:26:34.258651"], ["updated_at", "2016-09-16 17:26:34.258651"]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.284347"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:26:34.263594"], ["updated_at", "2016-09-16 17:26:34.263594"]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.288868"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:26:34.291222"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [65ce5b03-dc15-4331-993c-861237c6acb8] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.97ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-09-16 17:26:34.299083"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:26:34.301232"], ["updated_at", "2016-09-16 17:26:34.301232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 181d99da-ccbb-4b91-b270-b68cde8d77bd) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:26:34.254411"], ["updated_at", "2016-09-16 17:26:34.254411"]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-09-16 17:26:34.311375"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:26:34.258651"], ["updated_at", "2016-09-16 17:26:34.258651"]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-09-16 17:26:34.317543"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:26:34.263594"], ["updated_at", "2016-09-16 17:26:34.263594"]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-09-16 17:26:34.323252"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:26:34.326043"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [181d99da-ccbb-4b91-b270-b68cde8d77bd] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.35ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.341799"], ["updated_at", "2016-09-16 17:26:34.341799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.7ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-09-16 17:26:34.344640"], ["updated_at", "2016-09-16 17:26:34.344640"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.347385"], ["updated_at", "2016-09-16 17:26:34.347385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.349193"], ["updated_at", "2016-09-16 17:26:34.349193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-09-16 17:26:34.352004"], ["updated_at", "2016-09-16 17:26:34.352004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.353557"], ["updated_at", "2016-09-16 17:26:34.353557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-09-16 17:26:34.356455"], ["updated_at", "2016-09-16 17:26:34.356455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.358621"], ["updated_at", "2016-09-16 17:26:34.358621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-09-16 17:26:34.361846"], ["updated_at", "2016-09-16 17:26:34.361846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.364198"], ["updated_at", "2016-09-16 17:26:34.364198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-09-16 17:26:34.367731"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:26:34.371199"], ["updated_at", "2016-09-16 17:26:34.371199"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 1194ae55-b128-40d5-91cc-423465f76b79) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:26:34.353557"], ["updated_at", "2016-09-16 17:26:34.353557"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.384190"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:26:34.358621"], ["updated_at", "2016-09-16 17:26:34.358621"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.390173"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:26:34.364198"], ["updated_at", "2016-09-16 17:26:34.364198"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.395545"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:26:34.398786"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1194ae55-b128-40d5-91cc-423465f76b79] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.23ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-09-16 17:26:34.405046"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-09-16 17:26:34.416276"], ["updated_at", "2016-09-16 17:26:34.416276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.419453"], ["updated_at", "2016-09-16 17:26:34.419453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-09-16 17:26:34.423566"], ["updated_at", "2016-09-16 17:26:34.423566"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.425927"], ["updated_at", "2016-09-16 17:26:34.425927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.427663"], ["updated_at", "2016-09-16 17:26:34.427663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-09-16 17:26:34.431718"], ["updated_at", "2016-09-16 17:26:34.431718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.433661"], ["updated_at", "2016-09-16 17:26:34.433661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-09-16 17:26:34.437222"], ["updated_at", "2016-09-16 17:26:34.437222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.439206"], ["updated_at", "2016-09-16 17:26:34.439206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-09-16 17:26:34.442165"], ["updated_at", "2016-09-16 17:26:34.442165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.443702"], ["updated_at", "2016-09-16 17:26:34.443702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.452735"], ["updated_at", "2016-09-16 17:26:34.452735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-09-16 17:26:34.456078"], ["updated_at", "2016-09-16 17:26:34.456078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.458524"], ["updated_at", "2016-09-16 17:26:34.458524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-09-16 17:26:34.463068"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-09-16 17:26:34.466266"], ["updated_at", "2016-09-16 17:26:34.466266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] /Users/eric/.rvm/gems/ruby-2.3.0/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:26:34.433661"], ["updated_at", "2016-09-16 17:26:34.433661"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.475665"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-09-16 17:26:34.439206"], ["updated_at", "2016-09-16 17:26:34.439206"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.481157"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-09-16 17:26:34.443702"], ["updated_at", "2016-09-16 17:26:34.443702"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-09-16 17:26:34.486279"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-09-16 17:26:34.489286"], ["updated_at", "2016-09-16 17:26:34.489286"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-09-16 17:26:34.491216"], ["updated_at", "2016-09-16 17:26:34.491216"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-09-16 17:26:34.492830"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6e0280a8-e901-49eb-9efe-3ca9a6b6fb5d] Performed Pulitzer::CloneVersionJob from Inline(default) in 28.58ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-09-16 17:26:34.504950"], ["updated_at", "2016-09-16 17:26:34.504950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-09-16 17:26:34.516632"], ["updated_at", "2016-09-16 17:26:34.516632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-09-16 17:26:34.523134"], ["updated_at", "2016-09-16 17:26:34.523134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-09-16 17:26:34.527941"], ["updated_at", "2016-09-16 17:26:34.527941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-09-16 17:26:34.533451"], ["updated_at", "2016-09-16 17:26:34.533451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:26:34.535271"], ["updated_at", "2016-09-16 17:26:34.535271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-09-16 17:26:34.541839"], ["updated_at", "2016-09-16 17:26:34.541839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-09-16 17:26:34.543827"], ["updated_at", "2016-09-16 17:26:34.543827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-09-16 17:26:34.550922"], ["updated_at", "2016-09-16 17:26:34.550922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-09-16 17:26:34.556430"], ["updated_at", "2016-09-16 17:26:34.556430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-09-16 17:26:34.562448"], ["updated_at", "2016-09-16 17:26:34.562448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.691315"], ["updated_at", "2016-09-16 17:26:34.691315"]]  (0.1ms) RELEASE 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 1 [["slug", "winterfell-news-9"]]  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.727734"], ["updated_at", "2016-09-16 17:26:34.727734"]]  (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 1 [["slug", "winterfell-news-10"]] SQL (0.9ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-09-16 17:26:34.731708"], ["updated_at", "2016-09-16 17:26:34.731708"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.738959"], ["updated_at", "2016-09-16 17:26:34.738959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.742098"], ["updated_at", "2016-09-16 17:26:34.742098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-09-16 17:26:34.743940"], ["updated_at", "2016-09-16 17:26:34.743940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 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.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.752439"], ["updated_at", "2016-09-16 17:26:34.752439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-09-16 17:26:34.755164"], ["updated_at", "2016-09-16 17:26:34.755164"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.758035"], ["updated_at", "2016-09-16 17:26:34.758035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.762723"], ["updated_at", "2016-09-16 17:26:34.762723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-09-16 17:26:34.765859"], ["updated_at", "2016-09-16 17:26:34.765859"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.767919"], ["updated_at", "2016-09-16 17:26:34.767919"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-09-16 17:26:34.770858"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-09-16 17:26:34.776369"], ["updated_at", "2016-09-16 17:26:34.776369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.782028"], ["updated_at", "2016-09-16 17:26:34.782028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-09-16 17:26:34.786058"], ["updated_at", "2016-09-16 17:26:34.786058"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.787755"], ["updated_at", "2016-09-16 17:26:34.787755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.789219"], ["updated_at", "2016-09-16 17:26:34.789219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.810292"], ["updated_at", "2016-09-16 17:26:34.810292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-09-16 17:26:34.814659"], ["updated_at", "2016-09-16 17:26:34.814659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-09-16 17:26:34.873813"], ["updated_at", "2016-09-16 17:26:34.873813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:26:34.887383"], ["updated_at", "2016-09-16 17:26:34.887383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-09-16 17:26:34.890445"], ["updated_at", "2016-09-16 17:26:34.890445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.4ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.901985"], ["updated_at", "2016-09-16 17:26:34.901985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-09-16 17:26:34.904557"], ["updated_at", "2016-09-16 17:26:34.904557"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.906475"], ["updated_at", "2016-09-16 17:26:34.906475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-09-16 17:26:34.908044"], ["updated_at", "2016-09-16 17:26:34.908044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-09-16 17:26:34.910240"], ["updated_at", "2016-09-16 17:26:34.910240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-09-16 17:26:34.912581"], ["updated_at", "2016-09-16 17:26:34.912581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:26:34.920297"], ["updated_at", "2016-09-16 17:26:34.920297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-09-16 17:26:34.922811"], ["updated_at", "2016-09-16 17:26:34.922811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-09-16 17:26:34.928898"], ["updated_at", "2016-09-16 17:26:34.928898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-09-16 17:26:34.931498"], ["updated_at", "2016-09-16 17:26:34.931498"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:26:34.932618' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-09-16 17:26:34.935336"], ["updated_at", "2016-09-16 17:26:34.935336"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:26:34.936135' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:26:34.942626"], ["updated_at", "2016-09-16 17:26:34.942626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-09-16 17:26:34.945090"], ["updated_at", "2016-09-16 17:26:34.945090"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-09-16 17:26:34.949700"], ["updated_at", "2016-09-16 17:26:34.949700"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:26:34.950697' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:26:34.955801"], ["updated_at", "2016-09-16 17:26:34.955801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-09-16 17:26:34.959312"], ["updated_at", "2016-09-16 17:26:34.959312"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-09-16 17:26:34.964007"], ["updated_at", "2016-09-16 17:26:34.964007"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:26:34.965337' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-09-16 17:26:34.970063"], ["updated_at", "2016-09-16 17:26:34.970063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-09-16 17:26:34.972680"], ["updated_at", "2016-09-16 17:26:34.972680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-09-16 17:26:34.975545"], ["updated_at", "2016-09-16 17:26:34.975545"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-09-16 17:26:34.976859' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:34.983439"], ["updated_at", "2016-09-16 17:26:34.983439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-09-16 17:26:34.986089"], ["updated_at", "2016-09-16 17:26:34.986089"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:34.987992"], ["updated_at", "2016-09-16 17:26:34.987992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-09-16 17:26:35.008133"], ["updated_at", "2016-09-16 17:26:35.008133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-09-16 17:26:35.010737"], ["updated_at", "2016-09-16 17:26:35.010737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-09-16 17:26:35.013447"], ["updated_at", "2016-09-16 17:26:35.013447"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:35.015493"], ["updated_at", "2016-09-16 17:26:35.015493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-09-16 17:26:35.017292"], ["updated_at", "2016-09-16 17:26:35.017292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-09-16 17:26:35.019764"], ["updated_at", "2016-09-16 17:26:35.019764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)  (1.0ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.9ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  (0.8ms) CREATE TABLE "pulitzer_layouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.8ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer, "layout_id" integer, "label" varchar)  (0.8ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "required" boolean DEFAULT 'f')  (0.9ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)   (0.9ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (0.9ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_id" integer, "hierarchical" boolean DEFAULT 'f' NOT NULL)   (0.8ms) CREATE INDEX "index_pulitzer_tags_on_hierarchical" ON "pulitzer_tags" ("hierarchical")  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160927160910') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.8ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)  (0.8ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.8ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  (0.8ms) CREATE TABLE "pulitzer_layouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.8ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer, "layout_id" integer, "label" varchar)  (0.8ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.8ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "required" boolean DEFAULT 'f')  (0.8ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)   (0.9ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)  (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (0.8ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_id" integer, "hierarchical" boolean DEFAULT 'f' NOT NULL)   (0.8ms) CREATE INDEX "index_pulitzer_tags_on_hierarchical" ON "pulitzer_tags" ("hierarchical")  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160927160910') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_pulitzer_posts_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_posts_on_slug' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_pulitzer_tags_on_hierarchical' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_tags_on_hierarchical' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.8ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)  (0.9ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.8ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  (0.9ms) CREATE TABLE "pulitzer_layouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.9ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer, "layout_id" integer, "label" varchar)  (1.0ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "required" boolean DEFAULT 'f')  (0.9ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)   (0.8ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (0.9ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_id" integer, "hierarchical" boolean DEFAULT 'f' NOT NULL)   (0.8ms) CREATE INDEX "index_pulitzer_tags_on_hierarchical" ON "pulitzer_tags" ("hierarchical")  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160927160910') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.7ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)  (0.9ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.9ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  (0.9ms) CREATE TABLE "pulitzer_layouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.9ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer, "layout_id" integer, "label" varchar)  (1.0ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "required" boolean DEFAULT 'f')  (0.8ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)   (0.8ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (0.9ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_id" integer, "hierarchical" boolean DEFAULT 'f' NOT NULL)   (0.8ms) CREATE INDEX "index_pulitzer_tags_on_hierarchical" ON "pulitzer_tags" ("hierarchical")  (0.8ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160927160910') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_pulitzer_posts_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_posts_on_slug' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_pulitzer_tags_on_hierarchical' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_tags_on_hierarchical' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)  (0.8ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.9ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  (0.9ms) CREATE TABLE "pulitzer_layouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)   (0.8ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer, "layout_id" integer, "label" varchar)  (0.9ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.9ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "required" boolean DEFAULT 'f')  (0.8ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "kind" integer DEFAULT 0)   (0.8ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "slug" varchar)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug")  (1.0ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "parent_id" integer, "hierarchical" boolean DEFAULT 'f' NOT NULL)   (0.9ms) CREATE INDEX "index_pulitzer_tags_on_hierarchical" ON "pulitzer_tags" ("hierarchical")  (0.9ms) CREATE TABLE "search_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160927160910') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePulitzerPostTypes (20150618224344)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618224344"]]  (1.3ms) commit transaction Migrating to CreatePulitzerContentElementTypes (20150618225402)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618225402"]]  (0.7ms) commit transaction Migrating to CreatePulitzerPosts (20150619204615)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "post_type_id" integer, "status" varchar DEFAULT 'unpublished', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204615"]]  (0.8ms) commit transaction Migrating to CreatePulitzerContentElements (20150619204708)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "post_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619204708"]]  (0.7ms) commit transaction Migrating to CreatePulitzerTags (20150619213436)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213436"]]  (0.7ms) commit transaction Migrating to CreatePulitzerPostTags (20150619213457)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619213457"]]  (0.8ms) commit transaction Migrating to CreatePulitzerPostTypeContentElementTypes (20150619215914)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_post_type_content_element_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "content_element_type_id" integer, "label" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150619215914"]]  (0.7ms) commit transaction Migrating to AddPluralAndTemplateToPulitzerPostTypes (20150629195832)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_post_types" ADD "plural" boolean  (0.2ms) ALTER TABLE "pulitzer_post_types" ADD "template" boolean SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150629195832"]]  (0.8ms) commit transaction Migrating to AddPulitzerContentElementTypes (20150702150819)  (0.1ms) begin transaction Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", "2016-12-07 19:10:15.134246"], ["updated_at", "2016-12-07 19:10:15.134246"]] Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-07 19:10:15.138786"], ["updated_at", "2016-12-07 19:10:15.138786"]] Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 19:10:15.140195"], ["updated_at", "2016-12-07 19:10:15.140195"]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150702150819"]]  (0.8ms) commit transaction Migrating to AddSlugToPulitzerPosts (20150724150230)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_posts" ADD "slug" varchar  (0.1ms) select sqlite_version(*)  (0.1ms) CREATE UNIQUE INDEX "index_pulitzer_posts_on_slug" ON "pulitzer_posts" ("slug") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150724150230"]]  (0.7ms) commit transaction Migrating to ChangeLabelTypeFromPulitzerPostTags (20150902212741)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_post_tags"  (0.3ms) DROP TABLE "pulitzer_post_tags"  (0.3ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "apulitzer_post_tags"  (0.1ms) DROP TABLE "apulitzer_post_tags" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150902212741"]]  (1.2ms) commit transaction Migrating to AddTextEditorToPulitzerPostTypeContentElementTypes (20151026180630)  (0.1ms) begin transaction  (1.2ms) ALTER TABLE "pulitzer_post_type_content_element_types" ADD "text_editor" varchar SQL (0.1ms) UPDATE "pulitzer_post_type_content_element_types" SET "text_editor" = 'None' WHERE "pulitzer_post_type_content_element_types"."id" IN (SELECT "pulitzer_post_type_content_element_types"."id" FROM "pulitzer_post_type_content_element_types" ORDER BY "pulitzer_post_type_content_element_types"."id" ASC) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151026180630"]]  (0.8ms) commit transaction Migrating to CreatePulitzerVersions (20151029194354)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer DEFAULT 0, "post_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029194354"]]  (0.7ms) commit transaction Migrating to ChangePostElementsToVersions (20151029220558)  (0.1ms) begin transaction  (1.7ms) CREATE TEMPORARY TABLE "apulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_content_elements"  (0.4ms) DROP TABLE "pulitzer_content_elements"  (0.2ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) SELECT * FROM "apulitzer_content_elements"  (0.1ms) DROP TABLE "apulitzer_content_elements"  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) SELECT * FROM "pulitzer_post_tags"  (0.2ms) DROP TABLE "pulitzer_post_tags"  (0.1ms) CREATE TABLE "pulitzer_post_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "label_id" integer, "label_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.0ms) SELECT * FROM "apulitzer_post_tags"  (0.1ms) DROP TABLE "apulitzer_post_tags" Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" ORDER BY "pulitzer_posts"."id" ASC LIMIT 1000 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029220558"]]  (1.0ms) commit transaction Migrating to AddPostTypeContentElementAttributesToContentElements (20151113183344)  (0.1ms) begin transaction  (0.7ms) ALTER TABLE "pulitzer_content_elements" ADD "text_editor" varchar  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "height" integer DEFAULT 100  (0.2ms) ALTER TABLE "pulitzer_content_elements" ADD "width" integer DEFAULT 100  (0.3ms) ALTER TABLE "pulitzer_content_elements" ADD "sort_order" integer Scoped order and limit are ignored, it's forced to be batch order and batch size Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1000 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151113183344"]]  (0.6ms) commit transaction Migrating to ChangeTemplateToPulitzerPostTypes (20151116162508)  (0.1ms) begin transaction  (0.1ms) CREATE TEMPORARY TABLE "apulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean, "template" boolean)   (0.2ms) SELECT * FROM "pulitzer_post_types"  (0.4ms) DROP TABLE "pulitzer_post_types"  (0.2ms) CREATE TABLE "pulitzer_post_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "plural" boolean)  (0.1ms) SELECT * FROM "apulitzer_post_types"  (0.1ms) DROP TABLE "apulitzer_post_types"  (0.2ms) ALTER TABLE "pulitzer_post_types" ADD "kind" integer DEFAULT 0 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151116162508"]]  (3.5ms) commit transaction Migrating to AddKindToPulitzerContentElements (20151118031237)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_content_elements" ADD "kind" integer DEFAULT 0 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151118031237"]]  (0.7ms) commit transaction Migrating to AddErrorsToVersion (20160122204201)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_versions" ADD "cloning_errors" jsonb SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160122204201"]]  (0.7ms) commit transaction Migrating to CreatePartials (20160511192041)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_partials" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "free_form_section_id" integer, "sort_order" integer)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160511192041"]]  (0.8ms) commit transaction Migrating to AddParentIdToPulitzerTag (20160511201527)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_tags" ADD "parent_id" integer  (0.2ms) ALTER TABLE "pulitzer_tags" ADD "hierarchical" boolean DEFAULT 'f' NOT NULL  (0.9ms) CREATE INDEX "index_pulitzer_tags_on_hierarchical" ON "pulitzer_tags" ("hierarchical") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160511201527"]]  (1.5ms) commit transaction Migrating to AddPartialToContentElement (20160512214545)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "pulitzer_content_elements" ADD "partial_id" integer SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160512214545"]]  (0.7ms) commit transaction Migrating to CreateFreeFormSectionType (20160513153209)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "pulitzer_free_form_section_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160513153209"]]  (0.7ms) commit transaction Migrating to CreateFreeFormSection (20160513153214)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_free_form_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version_id" integer, "free_form_section_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160513153214"]]  (0.8ms) commit transaction Migrating to FixPostTypeKinds (20160516150237)  (0.1ms) begin transaction Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" IN (1, 2) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160516150237"]]  (2.8ms) commit transaction Migrating to CreateLayouts (20160517181706)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "pulitzer_layouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_type_id" integer, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160517181706"]]  (1.0ms) commit transaction Migrating to AddLayoutToPartial (20160517182500)  (0.2ms) begin transaction  (0.6ms) ALTER TABLE "pulitzer_partials" ADD "layout_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160517182500"]]  (0.7ms) commit transaction Migrating to AddLabelToPartial (20160519181030)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "pulitzer_partials" ADD "label" varchar SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160519181030"]]  (0.7ms) commit transaction Migrating to RemoveTitleFromContentElements (20160609214139)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "apulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "title" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)   (0.1ms) SELECT * FROM "pulitzer_content_elements"  (0.2ms) DROP TABLE "pulitzer_content_elements"  (0.4ms) CREATE TABLE "pulitzer_content_elements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "label" varchar, "body" text, "image" varchar, "version_id" integer, "post_type_content_element_type_id" integer, "content_element_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "text_editor" varchar, "height" integer DEFAULT 100, "width" integer DEFAULT 100, "sort_order" integer, "kind" integer DEFAULT 0, "partial_id" integer)  (0.1ms) SELECT * FROM "apulitzer_content_elements"  (0.2ms) DROP TABLE "apulitzer_content_elements" SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160609214139"]]  (1.3ms) commit transaction Migrating to AddRequiredToPulitzerPostTypeContentElementType (20160927160910)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "pulitzer_post_type_content_element_types" ADD "required" boolean DEFAULT 'false' SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160927160910"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_pulitzer_posts_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_posts_on_slug' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_pulitzer_tags_on_hierarchical' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_pulitzer_tags_on_hierarchical' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) DELETE FROM "pulitzer_content_element_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (0.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';  (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.8ms) 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.7ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (0.6ms) 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.6ms) 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.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:10:39.976790"], ["updated_at", "2016-12-07 19:10:39.976790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (8.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (27.7ms) Completed 200 OK in 62ms (Views: 39.0ms | ActiveRecord: 0.4ms)  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:10:40.054934"], ["updated_at", "2016-12-07 19:10:40.054934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.9ms) Completed 200 OK in 15ms (Views: 9.9ms | ActiveRecord: 0.6ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:10:40.078030"], ["updated_at", "2016-12-07 19:10:40.078030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (9.0ms) Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:10:40.100184"], ["updated_at", "2016-12-07 19:10:40.100184"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.6ms) Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:10:40.121761"], ["updated_at", "2016-12-07 19:10:40.121761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:10:40.138518"], ["updated_at", "2016-12-07 19:10:40.138518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (13.1ms) Completed 200 OK in 28ms (Views: 17.6ms | ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:10:40.181272"], ["updated_at", "2016-12-07 19:10:40.181272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.4ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (4.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (25.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (28.3ms) Completed 200 OK in 44ms (Views: 30.1ms | ActiveRecord: 1.2ms) Pulitzer::Partial Load (0.2ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:10:40.241340"], ["updated_at", "2016-12-07 19:10:40.241340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (14.3ms) Completed 200 OK in 17ms (Views: 16.3ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:10:40.268515"], ["updated_at", "2016-12-07 19:10:40.268515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:10:40.272341"], ["updated_at", "2016-12-07 19:10:40.272341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (6.5ms) Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-12-07 19:10:40.304596"], ["updated_at", "2016-12-07 19:10:40.304596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:10:40.308068"], ["updated_at", "2016-12-07 19:10:40.308068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-12-07 19:10:40.323213"], ["updated_at", "2016-12-07 19:10:40.323213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:10:40.325599"], ["updated_at", "2016-12-07 19:10:40.325599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-12-07 19:10:40.336730"], ["updated_at", "2016-12-07 19:10:40.336730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:10:40.339850"], ["updated_at", "2016-12-07 19:10:40.339850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-12-07 19:10:40.349558"], ["updated_at", "2016-12-07 19:10:40.349558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-12-07 19:10:40.360862"], ["updated_at", "2016-12-07 19:10:40.360862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-12-07 19:10:40.415391"], ["updated_at", "2016-12-07 19:10:40.415391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 2.3ms | ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-12-07 19:10:40.427848"], ["updated_at", "2016-12-07 19:10:40.427848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 19:10:40.433165"], ["updated_at", "2016-12-07 19:10:40.433165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 19:10:40.449750"], ["updated_at", "2016-12-07 19:10:40.449750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-12-07 19:10:40.461401"], ["updated_at", "2016-12-07 19:10:40.461401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-12-07 19:10:40.474995"], ["updated_at", "2016-12-07 19:10:40.474995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-12-07 19:10:40.492498"], ["updated_at", "2016-12-07 19:10:40.492498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-12-07 19:10:40.503327"], ["updated_at", "2016-12-07 19:10:40.503327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-12-07 19:10:40.511627"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.7ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 19:10:40.517458"], ["updated_at", "2016-12-07 19:10:40.517458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-12-07 19:10:40.522637"], ["updated_at", "2016-12-07 19:10:40.522637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 19:10:40.534679"], ["updated_at", "2016-12-07 19:10:40.534679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-12-07 19:10:40.538202"], ["updated_at", "2016-12-07 19:10:40.538202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-12-07 19:10:40.550016"], ["updated_at", "2016-12-07 19:10:40.550016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-12-07 19:10:40.560110"], ["updated_at", "2016-12-07 19:10:40.560110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:40.582104"], ["updated_at", "2016-12-07 19:10:40.582104"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:10:40.674592"], ["updated_at", "2016-12-07 19:10:40.674592"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:40.677338"], ["updated_at", "2016-12-07 19:10:40.677338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:40.679585"], ["updated_at", "2016-12-07 19:10:40.679585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:10:40.690109"], ["updated_at", "2016-12-07 19:10:40.690109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:10:40.692439"], ["updated_at", "2016-12-07 19:10:40.692439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:10:40.695197"], ["updated_at", "2016-12-07 19:10:40.695197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:10:40.696566"], ["updated_at", "2016-12-07 19:10:40.696566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:10:40.698845"], ["updated_at", "2016-12-07 19:10:40.698845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:10:40.700214"], ["updated_at", "2016-12-07 19:10:40.700214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:10:40.704222"], ["updated_at", "2016-12-07 19:10:40.704222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:10:40.692439"], ["updated_at", "2016-12-07 19:10:40.692439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:40.711068"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:10:40.696566"], ["updated_at", "2016-12-07 19:10:40.696566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:40.715384"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:10:40.700214"], ["updated_at", "2016-12-07 19:10:40.700214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:40.719749"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:10:40.724646"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:40.735824"], ["updated_at", "2016-12-07 19:10:40.735824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 19:10:40.738551"], ["updated_at", "2016-12-07 19:10:40.738551"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:40.740120"], ["updated_at", "2016-12-07 19:10:40.740120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:40.741845"], ["updated_at", "2016-12-07 19:10:40.741845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:10:40.747543"], ["updated_at", "2016-12-07 19:10:40.747543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:10:40.759570"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:40.769449"], ["updated_at", "2016-12-07 19:10:40.769449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 19:10:40.772782"], ["updated_at", "2016-12-07 19:10:40.772782"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:40.774645"], ["updated_at", "2016-12-07 19:10:40.774645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:40.776341"], ["updated_at", "2016-12-07 19:10:40.776341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 19:10:40.778855"], ["updated_at", "2016-12-07 19:10:40.778855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:10:40.780681"], ["updated_at", "2016-12-07 19:10:40.780681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 19:10:40.783307"], ["updated_at", "2016-12-07 19:10:40.783307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:10:40.786420"], ["updated_at", "2016-12-07 19:10:40.786420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 19:10:40.790970"], ["updated_at", "2016-12-07 19:10:40.790970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:10:40.792463"], ["updated_at", "2016-12-07 19:10:40.792463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:10:40.794171"], ["updated_at", "2016-12-07 19:10:40.794171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:10:40.780681"], ["updated_at", "2016-12-07 19:10:40.780681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:40.800921"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:10:40.786420"], ["updated_at", "2016-12-07 19:10:40.786420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:40.805774"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:10:40.792463"], ["updated_at", "2016-12-07 19:10:40.792463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:40.810068"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:10:40.812384"], ["id", 3]]  (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 LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:40.821146"], ["updated_at", "2016-12-07 19:10:40.821146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 19:10:40.828675"], ["updated_at", "2016-12-07 19:10:40.828675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 19:10:40.831374"], ["updated_at", "2016-12-07 19:10:40.831374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 19:10:40.834030"], ["updated_at", "2016-12-07 19:10:40.834030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 19:10:40.835295"], ["updated_at", "2016-12-07 19:10:40.835295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 19:10:40.839013"], ["updated_at", "2016-12-07 19:10:40.839013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 19:10:40.840430"], ["updated_at", "2016-12-07 19:10:40.840430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 19:10:40.852251"], ["updated_at", "2016-12-07 19:10:40.852251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 19:10:40.867018"], ["updated_at", "2016-12-07 19:10:40.867018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 19:10:40.873459"], ["updated_at", "2016-12-07 19:10:40.873459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:40.878451"], ["updated_at", "2016-12-07 19:10:40.878451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-07 19:10:40.881384"], ["updated_at", "2016-12-07 19:10:40.881384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 19:10:40.882919"], ["updated_at", "2016-12-07 19:10:40.882919"]]  (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" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-07 19:10:40.887885"], ["updated_at", "2016-12-07 19:10:40.887885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 19:10:40.889694"], ["updated_at", "2016-12-07 19:10:40.889694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-07 19:10:40.892011"], ["updated_at", "2016-12-07 19:10:40.892011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 19:10:40.893344"], ["updated_at", "2016-12-07 19:10:40.893344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 19:10:40.896871"], ["updated_at", "2016-12-07 19:10:40.896871"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:40.898322"], ["updated_at", "2016-12-07 19:10:40.898322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 19:10:40.904437"], ["updated_at", "2016-12-07 19:10:40.904437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 19:10:40.908280"], ["updated_at", "2016-12-07 19:10:40.908280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 19:10:40.912629"], ["updated_at", "2016-12-07 19:10:40.912629"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:40.921861"], ["updated_at", "2016-12-07 19:10:40.921861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-12-07 19:10:40.928716"], ["updated_at", "2016-12-07 19:10:40.928716"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:40.930165"], ["updated_at", "2016-12-07 19:10:40.930165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:40.946715"], ["updated_at", "2016-12-07 19:10:40.946715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-12-07 19:10:40.949945"], ["updated_at", "2016-12-07 19:10:40.949945"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:40.952723"], ["updated_at", "2016-12-07 19:10:40.952723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:40.955625"], ["updated_at", "2016-12-07 19:10:40.955625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-12-07 19:10:40.958507"], ["updated_at", "2016-12-07 19:10:40.958507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:10:40.960071"], ["updated_at", "2016-12-07 19:10:40.960071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-12-07 19:10:40.962584"], ["updated_at", "2016-12-07 19:10:40.962584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:10:40.963963"], ["updated_at", "2016-12-07 19:10:40.963963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-12-07 19:10:40.966388"], ["updated_at", "2016-12-07 19:10:40.966388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:10:40.968057"], ["updated_at", "2016-12-07 19:10:40.968057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:10:40.975135"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:10:40.983761"], ["updated_at", "2016-12-07 19:10:40.983761"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b4d782c5-5661-4ce2-8af9-4960242f3193) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:10:40.960071"], ["updated_at", "2016-12-07 19:10:40.960071"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:40.995785"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:10:40.963963"], ["updated_at", "2016-12-07 19:10:40.963963"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:40.999911"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:10:40.968057"], ["updated_at", "2016-12-07 19:10:40.968057"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:41.005008"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:10:41.007297"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b4d782c5-5661-4ce2-8af9-4960242f3193] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.7ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:41.022124"], ["updated_at", "2016-12-07 19:10:41.022124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-12-07 19:10:41.024665"], ["updated_at", "2016-12-07 19:10:41.024665"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.026157"], ["updated_at", "2016-12-07 19:10:41.026157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.027645"], ["updated_at", "2016-12-07 19:10:41.027645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-12-07 19:10:41.030497"], ["updated_at", "2016-12-07 19:10:41.030497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:10:41.032064"], ["updated_at", "2016-12-07 19:10:41.032064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-12-07 19:10:41.034417"], ["updated_at", "2016-12-07 19:10:41.034417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:10:41.035878"], ["updated_at", "2016-12-07 19:10:41.035878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-12-07 19:10:41.038549"], ["updated_at", "2016-12-07 19:10:41.038549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:10:41.040409"], ["updated_at", "2016-12-07 19:10:41.040409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:10:41.042607"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:10:41.045450"], ["updated_at", "2016-12-07 19:10:41.045450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 64379889-a624-48e6-853a-d174d60409eb) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:10:41.032064"], ["updated_at", "2016-12-07 19:10:41.032064"]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:41.053937"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:10:41.035878"], ["updated_at", "2016-12-07 19:10:41.035878"]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:41.059659"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:10:41.040409"], ["updated_at", "2016-12-07 19:10:41.040409"]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:41.064116"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:10:41.066377"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [64379889-a624-48e6-853a-d174d60409eb] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.43ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:10:41.075715"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:10:41.078664"], ["updated_at", "2016-12-07 19:10:41.078664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 0e34ff24-30f0-413d-a4a9-12b214e3d9b7) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:10:41.032064"], ["updated_at", "2016-12-07 19:10:41.032064"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:10:41.086825"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:10:41.035878"], ["updated_at", "2016-12-07 19:10:41.035878"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:10:41.091454"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:10:41.040409"], ["updated_at", "2016-12-07 19:10:41.040409"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:10:41.095957"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:10:41.098053"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e34ff24-30f0-413d-a4a9-12b214e3d9b7] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.04ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:41.109657"], ["updated_at", "2016-12-07 19:10:41.109657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-12-07 19:10:41.112102"], ["updated_at", "2016-12-07 19:10:41.112102"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.113561"], ["updated_at", "2016-12-07 19:10:41.113561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.114932"], ["updated_at", "2016-12-07 19:10:41.114932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-12-07 19:10:41.117717"], ["updated_at", "2016-12-07 19:10:41.117717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:10:41.119591"], ["updated_at", "2016-12-07 19:10:41.119591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-12-07 19:10:41.122330"], ["updated_at", "2016-12-07 19:10:41.122330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:10:41.123694"], ["updated_at", "2016-12-07 19:10:41.123694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-12-07 19:10:41.126611"], ["updated_at", "2016-12-07 19:10:41.126611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:10:41.128067"], ["updated_at", "2016-12-07 19:10:41.128067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:10:41.130158"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:10:41.132462"], ["updated_at", "2016-12-07 19:10:41.132462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 55d86524-27fc-420a-a681-4db2867b92d3) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:10:41.119591"], ["updated_at", "2016-12-07 19:10:41.119591"]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:41.141544"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:10:41.123694"], ["updated_at", "2016-12-07 19:10:41.123694"]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:41.147382"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:10:41.128067"], ["updated_at", "2016-12-07 19:10:41.128067"]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:41.151506"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:10:41.155286"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [55d86524-27fc-420a-a681-4db2867b92d3] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.35ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:10:41.161287"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-12-07 19:10:41.172206"], ["updated_at", "2016-12-07 19:10:41.172206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:41.175593"], ["updated_at", "2016-12-07 19:10:41.175593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-12-07 19:10:41.177959"], ["updated_at", "2016-12-07 19:10:41.177959"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.179537"], ["updated_at", "2016-12-07 19:10:41.179537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.181050"], ["updated_at", "2016-12-07 19:10:41.181050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-12-07 19:10:41.183509"], ["updated_at", "2016-12-07 19:10:41.183509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:10:41.185024"], ["updated_at", "2016-12-07 19:10:41.185024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-12-07 19:10:41.189312"], ["updated_at", "2016-12-07 19:10:41.189312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:10:41.191110"], ["updated_at", "2016-12-07 19:10:41.191110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-12-07 19:10:41.193523"], ["updated_at", "2016-12-07 19:10:41.193523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:10:41.194856"], ["updated_at", "2016-12-07 19:10:41.194856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 19:10:41.202126"], ["updated_at", "2016-12-07 19:10:41.202126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-12-07 19:10:41.205417"], ["updated_at", "2016-12-07 19:10:41.205417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 19:10:41.208169"], ["updated_at", "2016-12-07 19:10:41.208169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:10:41.211496"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:10:41.213425"], ["updated_at", "2016-12-07 19:10:41.213425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: baee02c6-9641-4455-b6ec-df69ac88edfd) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:10:41.185024"], ["updated_at", "2016-12-07 19:10:41.185024"]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:41.223224"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:10:41.191110"], ["updated_at", "2016-12-07 19:10:41.191110"]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:41.227279"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:10:41.194856"], ["updated_at", "2016-12-07 19:10:41.194856"]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:10:41.231875"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 19:10:41.234490"], ["updated_at", "2016-12-07 19:10:41.234490"]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 19:10:41.237185"], ["updated_at", "2016-12-07 19:10:41.237185"]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:10:41.238610"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [baee02c6-9641-4455-b6ec-df69ac88edfd] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.44ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-12-07 19:10:41.250198"], ["updated_at", "2016-12-07 19:10:41.250198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-12-07 19:10:41.260245"], ["updated_at", "2016-12-07 19:10:41.260245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-12-07 19:10:41.264970"], ["updated_at", "2016-12-07 19:10:41.264970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-12-07 19:10:41.269834"], ["updated_at", "2016-12-07 19:10:41.269834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 19:10:41.274915"], ["updated_at", "2016-12-07 19:10:41.274915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:10:41.276755"], ["updated_at", "2016-12-07 19:10:41.276755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 19:10:41.282876"], ["updated_at", "2016-12-07 19:10:41.282876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:10:41.285230"], ["updated_at", "2016-12-07 19:10:41.285230"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-12-07 19:10:41.292014"], ["updated_at", "2016-12-07 19:10:41.292014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-12-07 19:10:41.296198"], ["updated_at", "2016-12-07 19:10:41.296198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-07 19:10:41.312084"], ["updated_at", "2016-12-07 19:10:41.312084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:41.502214"], ["updated_at", "2016-12-07 19:10:41.502214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:41.515622"], ["updated_at", "2016-12-07 19:10:41.515622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-12-07 19:10:41.518417"], ["updated_at", "2016-12-07 19:10:41.518417"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.521692"], ["updated_at", "2016-12-07 19:10:41.521692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.524075"], ["updated_at", "2016-12-07 19:10:41.524075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 19:10:41.525636"], ["updated_at", "2016-12-07 19:10:41.525636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:41.530465"], ["updated_at", "2016-12-07 19:10:41.530465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-12-07 19:10:41.533150"], ["updated_at", "2016-12-07 19:10:41.533150"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.535022"], ["updated_at", "2016-12-07 19:10:41.535022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:41.540332"], ["updated_at", "2016-12-07 19:10:41.540332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-12-07 19:10:41.543075"], ["updated_at", "2016-12-07 19:10:41.543075"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.544801"], ["updated_at", "2016-12-07 19:10:41.544801"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-12-07 19:10:41.547002"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.9ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-12-07 19:10:41.552469"], ["updated_at", "2016-12-07 19:10:41.552469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:41.557769"], ["updated_at", "2016-12-07 19:10:41.557769"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-12-07 19:10:41.562172"], ["updated_at", "2016-12-07 19:10:41.562172"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.564249"], ["updated_at", "2016-12-07 19:10:41.564249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.566234"], ["updated_at", "2016-12-07 19:10:41.566234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:41.603290"], ["updated_at", "2016-12-07 19:10:41.603290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-12-07 19:10:41.606599"], ["updated_at", "2016-12-07 19:10:41.606599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.3ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-12-07 19:10:41.655112"], ["updated_at", "2016-12-07 19:10:41.655112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:10:41.667613"], ["updated_at", "2016-12-07 19:10:41.667613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-12-07 19:10:41.672304"], ["updated_at", "2016-12-07 19:10:41.672304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:41.680187"], ["updated_at", "2016-12-07 19:10:41.680187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-12-07 19:10:41.682971"], ["updated_at", "2016-12-07 19:10:41.682971"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.684799"], ["updated_at", "2016-12-07 19:10:41.684799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 19:10:41.687012"], ["updated_at", "2016-12-07 19:10:41.687012"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-12-07 19:10:41.692442"], ["updated_at", "2016-12-07 19:10:41.692442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 19:10:41.694395"], ["updated_at", "2016-12-07 19:10:41.694395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:10:41.701709"], ["updated_at", "2016-12-07 19:10:41.701709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-12-07 19:10:41.705921"], ["updated_at", "2016-12-07 19:10:41.705921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-12-07 19:10:41.710876"], ["updated_at", "2016-12-07 19:10:41.710876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-12-07 19:10:41.713163"], ["updated_at", "2016-12-07 19:10:41.713163"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:10:41.714002' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-12-07 19:10:41.716331"], ["updated_at", "2016-12-07 19:10:41.716331"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:10:41.717347' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:10:41.724037"], ["updated_at", "2016-12-07 19:10:41.724037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-12-07 19:10:41.726332"], ["updated_at", "2016-12-07 19:10:41.726332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 19:10:41.728922"], ["updated_at", "2016-12-07 19:10:41.728922"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:10:41.729781' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:10:41.733740"], ["updated_at", "2016-12-07 19:10:41.733740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-12-07 19:10:41.737616"], ["updated_at", "2016-12-07 19:10:41.737616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 19:10:41.739999"], ["updated_at", "2016-12-07 19:10:41.739999"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:10:41.740809' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:10:41.744515"], ["updated_at", "2016-12-07 19:10:41.744515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-12-07 19:10:41.746694"], ["updated_at", "2016-12-07 19:10:41.746694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 19:10:41.749126"], ["updated_at", "2016-12-07 19:10:41.749126"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:10:41.749932' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:41.756361"], ["updated_at", "2016-12-07 19:10:41.756361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-12-07 19:10:41.759654"], ["updated_at", "2016-12-07 19:10:41.759654"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.761584"], ["updated_at", "2016-12-07 19:10:41.761584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-12-07 19:10:41.781654"], ["updated_at", "2016-12-07 19:10:41.781654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:10:41.784088"], ["updated_at", "2016-12-07 19:10:41.784088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-12-07 19:10:41.788213"], ["updated_at", "2016-12-07 19:10:41.788213"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.792099"], ["updated_at", "2016-12-07 19:10:41.792099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:10:41.794277"], ["updated_at", "2016-12-07 19:10:41.794277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 19:10:41.796543"], ["updated_at", "2016-12-07 19:10:41.796543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (0.8ms) 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.8ms) DELETE FROM "pulitzer_tags";  (0.2ms) 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.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';  (0.7ms) 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';  (0.9ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.6ms) 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.6ms) 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.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:14:26.061435"], ["updated_at", "2016-12-07 19:14:26.061435"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.7ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:14:26.164690"], ["updated_at", "2016-12-07 19:14:26.164690"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:14:26.175451"], ["updated_at", "2016-12-07 19:14:26.175451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:14:26.179412"], ["updated_at", "2016-12-07 19:14:26.179412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:14:26.192395"], ["updated_at", "2016-12-07 19:14:26.192395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:14:26.194640"], ["updated_at", "2016-12-07 19:14:26.194640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:14:26.197881"], ["updated_at", "2016-12-07 19:14:26.197881"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:14:26.202100"], ["updated_at", "2016-12-07 19:14:26.202100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:14:26.204619"], ["updated_at", "2016-12-07 19:14:26.204619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:14:26.205976"], ["updated_at", "2016-12-07 19:14:26.205976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.4ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:14:26.236430"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.3ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (4.4ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 1], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (7.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (9.7ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 1], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.6ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (45.9ms) Completed 200 OK in 77ms (Views: 0.4ms | ActiveRecord: 2.5ms)  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.3ms) 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.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';  (0.7ms) 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.7ms) 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';  (0.8ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:15:26.423198"], ["updated_at", "2016-12-07 19:15:26.423198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:15:26.531617"], ["updated_at", "2016-12-07 19:15:26.531617"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:15:26.542245"], ["updated_at", "2016-12-07 19:15:26.542245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:15:26.544636"], ["updated_at", "2016-12-07 19:15:26.544636"]]  (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" = 'Text 1' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:15:26.562901"], ["updated_at", "2016-12-07 19:15:26.562901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:15:26.566188"], ["updated_at", "2016-12-07 19:15:26.566188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:15:26.569818"], ["updated_at", "2016-12-07 19:15:26.569818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:15:26.571989"], ["updated_at", "2016-12-07 19:15:26.571989"]]  (0.1ms) 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" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:15:26.577089"], ["updated_at", "2016-12-07 19:15:26.577089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:15:26.578866"], ["updated_at", "2016-12-07 19:15:26.578866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.3ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:15:26.609840"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.9ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 1], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.4ms) Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 1], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.5ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (8.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (43.9ms) Completed 200 OK in 75ms (Views: 0.4ms | ActiveRecord: 2.2ms)  (1.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.4ms) 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.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) 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.4ms) DELETE FROM "pulitzer_versions";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';  (2.4ms) 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.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.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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:16:04.858956"], ["updated_at", "2016-12-07 19:16:04.858956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (1.0ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:16:04.979132"], ["updated_at", "2016-12-07 19:16:04.979132"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:16:04.988333"], ["updated_at", "2016-12-07 19:16:04.988333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:16:04.990874"], ["updated_at", "2016-12-07 19:16:04.990874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:16:05.004943"], ["updated_at", "2016-12-07 19:16:05.004943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:16:05.007364"], ["updated_at", "2016-12-07 19:16:05.007364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:16:05.009994"], ["updated_at", "2016-12-07 19:16:05.009994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:16:05.011317"], ["updated_at", "2016-12-07 19:16:05.011317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:16:05.013694"], ["updated_at", "2016-12-07 19:16:05.013694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:16:05.015004"], ["updated_at", "2016-12-07 19:16:05.015004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (1.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (1.0ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:16:28.509003"], ["id", 2]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (1.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (1.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (3.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (6.0ms) Pulitzer::PostTag Load (0.2ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 1], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (8.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (13.6ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 1], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (6.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.8ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (60.2ms) Completed 200 OK in 121755ms (Views: 0.4ms | ActiveRecord: 11.6ms)  (1.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.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';  (0.7ms) 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.8ms) 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';  (0.9ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (2.3ms) DELETE FROM "pulitzer_free_form_section_types";  (0.3ms) 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";  (2.0ms) 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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:18:10.713821"], ["updated_at", "2016-12-07 19:18:10.713821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:18:10.821501"], ["updated_at", "2016-12-07 19:18:10.821501"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:18:10.829187"], ["updated_at", "2016-12-07 19:18:10.829187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:18:10.834027"], ["updated_at", "2016-12-07 19:18:10.834027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:18:10.846505"], ["updated_at", "2016-12-07 19:18:10.846505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:18:10.851261"], ["updated_at", "2016-12-07 19:18:10.851261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:18:10.854309"], ["updated_at", "2016-12-07 19:18:10.854309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:18:10.855765"], ["updated_at", "2016-12-07 19:18:10.855765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:18:10.858579"], ["updated_at", "2016-12-07 19:18:10.858579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:18:10.860036"], ["updated_at", "2016-12-07 19:18:10.860036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:18:10.888411"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (1.9ms) Completed 200 OK in 43ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (1.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';  (0.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';  (0.7ms) 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";  (2.0ms) 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';  (0.8ms) 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';  (0.8ms) 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.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.3ms) begin transaction  (0.3ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:18:39.037656"], ["updated_at", "2016-12-07 19:18:39.037656"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:18:39.159243"], ["updated_at", "2016-12-07 19:18:39.159243"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:18:39.167035"], ["updated_at", "2016-12-07 19:18:39.167035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:18:39.171382"], ["updated_at", "2016-12-07 19:18:39.171382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:18:39.189110"], ["updated_at", "2016-12-07 19:18:39.189110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:18:39.192500"], ["updated_at", "2016-12-07 19:18:39.192500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:18:39.195614"], ["updated_at", "2016-12-07 19:18:39.195614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:18:39.197149"], ["updated_at", "2016-12-07 19:18:39.197149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:18:39.199476"], ["updated_at", "2016-12-07 19:18:39.199476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:18:39.201978"], ["updated_at", "2016-12-07 19:18:39.201978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:18:39.231547"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (3.2ms) Completed 200 OK in 32ms (Views: 0.5ms | ActiveRecord: 0.9ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.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.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';  (0.8ms) 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';  (0.8ms) 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.2ms) 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.6ms) 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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:21:32.389078"], ["updated_at", "2016-12-07 19:21:32.389078"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:21:32.494133"], ["updated_at", "2016-12-07 19:21:32.494133"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:21:32.504153"], ["updated_at", "2016-12-07 19:21:32.504153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:21:32.506381"], ["updated_at", "2016-12-07 19:21:32.506381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:21:32.521375"], ["updated_at", "2016-12-07 19:21:32.521375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:21:32.523615"], ["updated_at", "2016-12-07 19:21:32.523615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:21:32.526149"], ["updated_at", "2016-12-07 19:21:32.526149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:21:32.527984"], ["updated_at", "2016-12-07 19:21:32.527984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:21:32.531094"], ["updated_at", "2016-12-07 19:21:32.531094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:21:32.533104"], ["updated_at", "2016-12-07 19:21:32.533104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:21:32.564131"], ["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (1.9ms) Completed 200 OK in 32ms (Views: 0.2ms | ActiveRecord: 1.5ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.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.7ms) 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';  (0.8ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (0.8ms) 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.9ms) 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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:21:52.486797"], ["updated_at", "2016-12-07 19:21:52.486797"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:21:52.591288"], ["updated_at", "2016-12-07 19:21:52.591288"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:21:52.601201"], ["updated_at", "2016-12-07 19:21:52.601201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:21:52.604104"], ["updated_at", "2016-12-07 19:21:52.604104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:21:52.618331"], ["updated_at", "2016-12-07 19:21:52.618331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:21:52.620889"], ["updated_at", "2016-12-07 19:21:52.620889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:21:52.623545"], ["updated_at", "2016-12-07 19:21:52.623545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:21:52.624859"], ["updated_at", "2016-12-07 19:21:52.624859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:21:52.627047"], ["updated_at", "2016-12-07 19:21:52.627047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:21:52.628409"], ["updated_at", "2016-12-07 19:21:52.628409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:21:52.659498"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (2.0ms) Completed 200 OK in 31ms (Views: 0.2ms | ActiveRecord: 0.9ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:21:52.688447"], ["updated_at", "2016-12-07 19:21:52.688447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 19:21:52.692732"], ["updated_at", "2016-12-07 19:21:52.692732"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:21:52.695226"], ["updated_at", "2016-12-07 19:21:52.695226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:21:52.696807"], ["updated_at", "2016-12-07 19:21:52.696807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 19:21:52.699394"], ["updated_at", "2016-12-07 19:21:52.699394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:21:52.700885"], ["updated_at", "2016-12-07 19:21:52.700885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 19:21:52.704012"], ["updated_at", "2016-12-07 19:21:52.704012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:21:52.705392"], ["updated_at", "2016-12-07 19:21:52.705392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 19:21:52.709612"], ["updated_at", "2016-12-07 19:21:52.709612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:21:52.711927"], ["updated_at", "2016-12-07 19:21:52.711927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.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.7ms) 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';  (0.7ms) 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.7ms) 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.5ms) DELETE FROM "pulitzer_post_types";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.9ms) 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.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';  (1.1ms) 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.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.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:22:25.418426"], ["updated_at", "2016-12-07 19:22:25.418426"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:22:25.542059"], ["updated_at", "2016-12-07 19:22:25.542059"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:22:25.550416"], ["updated_at", "2016-12-07 19:22:25.550416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:22:25.552666"], ["updated_at", "2016-12-07 19:22:25.552666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:22:25.567842"], ["updated_at", "2016-12-07 19:22:25.567842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:22:25.570282"], ["updated_at", "2016-12-07 19:22:25.570282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:22:25.575564"], ["updated_at", "2016-12-07 19:22:25.575564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:22:25.577676"], ["updated_at", "2016-12-07 19:22:25.577676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:22:25.581477"], ["updated_at", "2016-12-07 19:22:25.581477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:22:25.582943"], ["updated_at", "2016-12-07 19:22:25.582943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:22:25.600591"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (1.9ms) Completed 200 OK in 31ms (Views: 0.2ms | ActiveRecord: 0.9ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:22:25.629896"], ["updated_at", "2016-12-07 19:22:25.629896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 19:22:25.632612"], ["updated_at", "2016-12-07 19:22:25.632612"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:22:25.634262"], ["updated_at", "2016-12-07 19:22:25.634262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:22:25.636442"], ["updated_at", "2016-12-07 19:22:25.636442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 19:22:25.641301"], ["updated_at", "2016-12-07 19:22:25.641301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:22:25.643203"], ["updated_at", "2016-12-07 19:22:25.643203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 19:22:25.646004"], ["updated_at", "2016-12-07 19:22:25.646004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:22:25.647363"], ["updated_at", "2016-12-07 19:22:25.647363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 19:22:25.649696"], ["updated_at", "2016-12-07 19:22:25.649696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:22:25.650973"], ["updated_at", "2016-12-07 19:22:25.650973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:22:25.657782"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:22:25.661364"], ["updated_at", "2016-12-07 19:22:25.661364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ef443a36-0b74-44af-875a-d7d3d2090c58) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:22:25.643203"], ["updated_at", "2016-12-07 19:22:25.643203"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:22:25.677509"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:22:25.647363"], ["updated_at", "2016-12-07 19:22:25.647363"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:22:25.681589"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:22:25.650973"], ["updated_at", "2016-12-07 19:22:25.650973"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:22:25.685606"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:22:25.691919"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ef443a36-0b74-44af-875a-d7d3d2090c58] Performed Pulitzer::CloneVersionJob from Inline(default) in 29.32ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.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.7ms) 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.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';  (0.8ms) 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';  (0.8ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:22:43.933185"], ["updated_at", "2016-12-07 19:22:43.933185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:22:44.058621"], ["updated_at", "2016-12-07 19:22:44.058621"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:22:44.069490"], ["updated_at", "2016-12-07 19:22:44.069490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:22:44.072040"], ["updated_at", "2016-12-07 19:22:44.072040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:22:44.086577"], ["updated_at", "2016-12-07 19:22:44.086577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:22:44.088873"], ["updated_at", "2016-12-07 19:22:44.088873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:22:44.092062"], ["updated_at", "2016-12-07 19:22:44.092062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:22:44.093930"], ["updated_at", "2016-12-07 19:22:44.093930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:22:44.098506"], ["updated_at", "2016-12-07 19:22:44.098506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:22:44.100295"], ["updated_at", "2016-12-07 19:22:44.100295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.3ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:22:44.118221"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.4ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (1.8ms) Completed 200 OK in 31ms (Views: 0.2ms | ActiveRecord: 1.5ms) Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:22:44.149072"], ["updated_at", "2016-12-07 19:22:44.149072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 19:22:44.151967"], ["updated_at", "2016-12-07 19:22:44.151967"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:22:44.154793"], ["updated_at", "2016-12-07 19:22:44.154793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:22:44.156702"], ["updated_at", "2016-12-07 19:22:44.156702"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 19:22:44.161402"], ["updated_at", "2016-12-07 19:22:44.161402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:22:44.162933"], ["updated_at", "2016-12-07 19:22:44.162933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 19:22:44.165701"], ["updated_at", "2016-12-07 19:22:44.165701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:22:44.167035"], ["updated_at", "2016-12-07 19:22:44.167035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 19:22:44.169335"], ["updated_at", "2016-12-07 19:22:44.169335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:22:44.170637"], ["updated_at", "2016-12-07 19:22:44.170637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:22:44.177557"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:22:44.180164"], ["updated_at", "2016-12-07 19:22:44.180164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: aa827070-0238-43d5-9da9-200332604c56) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] Pulitzer::ContentElementType Load (0.3ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:22:44.162933"], ["updated_at", "2016-12-07 19:22:44.162933"]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:22:44.196966"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:22:44.167035"], ["updated_at", "2016-12-07 19:22:44.167035"]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:22:44.201089"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:22:44.170637"], ["updated_at", "2016-12-07 19:22:44.170637"]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:22:44.205015"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:22:44.211223"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [aa827070-0238-43d5-9da9-200332604c56] Performed Pulitzer::CloneVersionJob from Inline(default) in 29.56ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:22:44.223162"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.2ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.0ms) Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.8ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (33.9ms) Completed 200 OK in 40ms (Views: 0.4ms | ActiveRecord: 1.0ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (1.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.8ms) 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.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';  (0.7ms) 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.8ms) DELETE FROM "pulitzer_post_tags";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (0.8ms) 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.9ms) DELETE FROM "pulitzer_partials";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (1.2ms) 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.3ms) 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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:25:14.487573"], ["updated_at", "2016-12-07 19:25:14.487573"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:25:14.594880"], ["updated_at", "2016-12-07 19:25:14.594880"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:25:14.605016"], ["updated_at", "2016-12-07 19:25:14.605016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:25:14.607951"], ["updated_at", "2016-12-07 19:25:14.607951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:25:14.621116"], ["updated_at", "2016-12-07 19:25:14.621116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:25:14.623504"], ["updated_at", "2016-12-07 19:25:14.623504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:25:14.626111"], ["updated_at", "2016-12-07 19:25:14.626111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:25:14.627465"], ["updated_at", "2016-12-07 19:25:14.627465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:25:14.630772"], ["updated_at", "2016-12-07 19:25:14.630772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:25:14.632341"], ["updated_at", "2016-12-07 19:25:14.632341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:25:14.665222"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (1.9ms) Completed 200 OK in 44ms (Views: 0.3ms | ActiveRecord: 1.0ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:25:14.692856"], ["updated_at", "2016-12-07 19:25:14.692856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 19:25:14.695844"], ["updated_at", "2016-12-07 19:25:14.695844"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:25:14.699345"], ["updated_at", "2016-12-07 19:25:14.699345"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:25:14.703446"], ["updated_at", "2016-12-07 19:25:14.703446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 19:25:14.706169"], ["updated_at", "2016-12-07 19:25:14.706169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:25:14.707564"], ["updated_at", "2016-12-07 19:25:14.707564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 19:25:14.709864"], ["updated_at", "2016-12-07 19:25:14.709864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:25:14.711381"], ["updated_at", "2016-12-07 19:25:14.711381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 19:25:14.713823"], ["updated_at", "2016-12-07 19:25:14.713823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:25:14.715230"], ["updated_at", "2016-12-07 19:25:14.715230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:25:14.721947"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:25:14.724208"], ["updated_at", "2016-12-07 19:25:14.724208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: f09b7b17-dea9-4df1-b3b6-8a190f833aa7) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] 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 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] 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]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:25:14.707564"], ["updated_at", "2016-12-07 19:25:14.707564"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:25:14.741315"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:25:14.711381"], ["updated_at", "2016-12-07 19:25:14.711381"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:25:14.745574"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:25:14.715230"], ["updated_at", "2016-12-07 19:25:14.715230"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:25:14.750405"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:25:14.756097"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f09b7b17-dea9-4df1-b3b6-8a190f833aa7] Performed Pulitzer::CloneVersionJob from Inline(default) in 30.08ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:25:14.766637"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.1ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (5.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (7.0ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.6ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (34.7ms) Completed 200 OK in 40ms (Views: 0.3ms | ActiveRecord: 1.0ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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';  (0.6ms) 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.7ms) 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';  (0.7ms) 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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:29:14.842112"], ["updated_at", "2016-12-07 19:29:14.842112"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:29:14.950817"], ["updated_at", "2016-12-07 19:29:14.950817"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:29:14.963013"], ["updated_at", "2016-12-07 19:29:14.963013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:29:14.965245"], ["updated_at", "2016-12-07 19:29:14.965245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:29:14.978357"], ["updated_at", "2016-12-07 19:29:14.978357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:29:14.981084"], ["updated_at", "2016-12-07 19:29:14.981084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:29:14.983845"], ["updated_at", "2016-12-07 19:29:14.983845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:29:14.985333"], ["updated_at", "2016-12-07 19:29:14.985333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:29:14.988536"], ["updated_at", "2016-12-07 19:29:14.988536"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:29:14.993832"], ["updated_at", "2016-12-07 19:29:14.993832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:29:15.025146"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (2.3ms) Completed 200 OK in 45ms (Views: 0.3ms | ActiveRecord: 1.0ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:29:15.054649"], ["updated_at", "2016-12-07 19:29:15.054649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 19:29:15.059186"], ["updated_at", "2016-12-07 19:29:15.059186"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:29:15.061417"], ["updated_at", "2016-12-07 19:29:15.061417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:29:15.063249"], ["updated_at", "2016-12-07 19:29:15.063249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 19:29:15.065941"], ["updated_at", "2016-12-07 19:29:15.065941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:29:15.067824"], ["updated_at", "2016-12-07 19:29:15.067824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 19:29:15.070394"], ["updated_at", "2016-12-07 19:29:15.070394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:29:15.072448"], ["updated_at", "2016-12-07 19:29:15.072448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 19:29:15.077506"], ["updated_at", "2016-12-07 19:29:15.077506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:29:15.079282"], ["updated_at", "2016-12-07 19:29:15.079282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:29:15.086111"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:29:15.090584"], ["updated_at", "2016-12-07 19:29:15.090584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 9aaee0d1-b761-4aac-96e8-4865310daa6c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] 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 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:29:15.067824"], ["updated_at", "2016-12-07 19:29:15.067824"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:29:15.107469"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:29:15.072448"], ["updated_at", "2016-12-07 19:29:15.072448"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:29:15.112611"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:29:15.079282"], ["updated_at", "2016-12-07 19:29:15.079282"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:29:15.116667"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:29:15.122787"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9aaee0d1-b761-4aac-96e8-4865310daa6c] Performed Pulitzer::CloneVersionJob from Inline(default) in 29.85ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:29:15.134312"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (4.7ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.8ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.3ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (35.9ms) Completed 200 OK in 42ms (Views: 0.4ms | ActiveRecord: 1.1ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:29:15.182682"], ["updated_at", "2016-12-07 19:29:15.182682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 19:29:15.185514"], ["updated_at", "2016-12-07 19:29:15.185514"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:29:15.186994"], ["updated_at", "2016-12-07 19:29:15.186994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:29:15.188887"], ["updated_at", "2016-12-07 19:29:15.188887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 19:29:15.193744"], ["updated_at", "2016-12-07 19:29:15.193744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:29:15.195617"], ["updated_at", "2016-12-07 19:29:15.195617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 19:29:15.198599"], ["updated_at", "2016-12-07 19:29:15.198599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:29:15.200146"], ["updated_at", "2016-12-07 19:29:15.200146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 19:29:15.202916"], ["updated_at", "2016-12-07 19:29:15.202916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:29:15.204512"], ["updated_at", "2016-12-07 19:29:15.204512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:29:15.208406"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:29:15.211007"], ["updated_at", "2016-12-07 19:29:15.211007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ee466239-021f-4f43-b2fa-8a876eb8998d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:29:15.195617"], ["updated_at", "2016-12-07 19:29:15.195617"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:29:15.220724"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:29:15.200146"], ["updated_at", "2016-12-07 19:29:15.200146"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:29:15.227925"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:29:15.204512"], ["updated_at", "2016-12-07 19:29:15.204512"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:29:15.232498"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:29:15.235285"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ee466239-021f-4f43-b2fa-8a876eb8998d] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.14ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:29:15.246449"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:29:15.249487"], ["updated_at", "2016-12-07 19:29:15.249487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: de0fac37-5d05-434d-bc42-fbf977214a1b) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:29:15.195617"], ["updated_at", "2016-12-07 19:29:15.195617"]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:29:15.257208"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:29:15.200146"], ["updated_at", "2016-12-07 19:29:15.200146"]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:29:15.261828"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:29:15.204512"], ["updated_at", "2016-12-07 19:29:15.204512"]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:29:15.266081"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:29:15.268259"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de0fac37-5d05-434d-bc42-fbf977214a1b] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.28ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (6.8ms) Completed 200 OK in 35ms (Views: 0.2ms | ActiveRecord: 2.2ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.7ms) 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.6ms) 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.8ms) 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.8ms) DELETE FROM "pulitzer_post_tags";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (1.2ms) 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.9ms) DELETE FROM "pulitzer_free_form_sections";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_free_form_sections';  (1.4ms) 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.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:29:30.650887"], ["updated_at", "2016-12-07 19:29:30.650887"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:29:30.773890"], ["updated_at", "2016-12-07 19:29:30.773890"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:29:30.783995"], ["updated_at", "2016-12-07 19:29:30.783995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:29:30.786285"], ["updated_at", "2016-12-07 19:29:30.786285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:29:30.800346"], ["updated_at", "2016-12-07 19:29:30.800346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:29:30.803049"], ["updated_at", "2016-12-07 19:29:30.803049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:29:30.806229"], ["updated_at", "2016-12-07 19:29:30.806229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:29:30.808535"], ["updated_at", "2016-12-07 19:29:30.808535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:29:30.812232"], ["updated_at", "2016-12-07 19:29:30.812232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:29:30.813838"], ["updated_at", "2016-12-07 19:29:30.813838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:29:30.831194"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (3.1ms) Completed 200 OK in 31ms (Views: 0.3ms | ActiveRecord: 1.1ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:29:30.862983"], ["updated_at", "2016-12-07 19:29:30.862983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 19:29:30.865564"], ["updated_at", "2016-12-07 19:29:30.865564"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:29:30.867356"], ["updated_at", "2016-12-07 19:29:30.867356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:29:30.869204"], ["updated_at", "2016-12-07 19:29:30.869204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 19:29:30.872047"], ["updated_at", "2016-12-07 19:29:30.872047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:29:30.873482"], ["updated_at", "2016-12-07 19:29:30.873482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 19:29:30.877757"], ["updated_at", "2016-12-07 19:29:30.877757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:29:30.879325"], ["updated_at", "2016-12-07 19:29:30.879325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 19:29:30.881689"], ["updated_at", "2016-12-07 19:29:30.881689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:29:30.883022"], ["updated_at", "2016-12-07 19:29:30.883022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:29:30.889701"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:29:30.891978"], ["updated_at", "2016-12-07 19:29:30.891978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 9d2cffce-d398-410f-b85e-abc1bb7a8eb8) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:29:30.873482"], ["updated_at", "2016-12-07 19:29:30.873482"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:29:30.909078"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:29:30.879325"], ["updated_at", "2016-12-07 19:29:30.879325"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:29:30.915167"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:29:30.883022"], ["updated_at", "2016-12-07 19:29:30.883022"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:29:30.919561"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:29:30.925846"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9d2cffce-d398-410f-b85e-abc1bb7a8eb8] Performed Pulitzer::CloneVersionJob from Inline(default) in 32.47ms Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:29:30.937487"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.4ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (5.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (7.1ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.7ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (8.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (37.5ms) Completed 200 OK in 43ms (Views: 0.4ms | ActiveRecord: 1.2ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (1.1ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:29:30.987302"], ["updated_at", "2016-12-07 19:29:30.987302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 19:29:30.990723"], ["updated_at", "2016-12-07 19:29:30.990723"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:29:30.992735"], ["updated_at", "2016-12-07 19:29:30.992735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:29:30.994317"], ["updated_at", "2016-12-07 19:29:30.994317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 19:29:30.998943"], ["updated_at", "2016-12-07 19:29:30.998943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:29:31.000662"], ["updated_at", "2016-12-07 19:29:31.000662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 19:29:31.003819"], ["updated_at", "2016-12-07 19:29:31.003819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:29:31.005484"], ["updated_at", "2016-12-07 19:29:31.005484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 19:29:31.009003"], ["updated_at", "2016-12-07 19:29:31.009003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:29:31.010601"], ["updated_at", "2016-12-07 19:29:31.010601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:29:31.014535"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:29:31.016915"], ["updated_at", "2016-12-07 19:29:31.016915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2ec9f61a-6bf9-41c7-8342-b41c9f5d633f) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:29:31.000662"], ["updated_at", "2016-12-07 19:29:31.000662"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:29:31.028328"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:29:31.005484"], ["updated_at", "2016-12-07 19:29:31.005484"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:29:31.032962"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:29:31.010601"], ["updated_at", "2016-12-07 19:29:31.010601"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:29:31.036873"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:29:31.039069"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2ec9f61a-6bf9-41c7-8342-b41c9f5d633f] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.92ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:29:31.050250"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:29:31.052736"], ["updated_at", "2016-12-07 19:29:31.052736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b63ec85d-2ee6-4d9e-b57a-baf2b0803a67) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:29:31.000662"], ["updated_at", "2016-12-07 19:29:31.000662"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:29:31.061564"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:29:31.005484"], ["updated_at", "2016-12-07 19:29:31.005484"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:29:31.066393"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:29:31.010601"], ["updated_at", "2016-12-07 19:29:31.010601"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:29:31.070869"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:29:31.073053"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b63ec85d-2ee6-4d9e-b57a-baf2b0803a67] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.2ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (7.2ms) Completed 200 OK in 37ms (Views: 0.3ms | ActiveRecord: 2.2ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.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.7ms) 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.1ms) DELETE FROM "pulitzer_versions";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) 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';  (0.8ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:36:18.139661"], ["updated_at", "2016-12-07 19:36:18.139661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:36:18.240920"], ["updated_at", "2016-12-07 19:36:18.240920"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:36:18.248649"], ["updated_at", "2016-12-07 19:36:18.248649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:36:18.251479"], ["updated_at", "2016-12-07 19:36:18.251479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:36:18.264645"], ["updated_at", "2016-12-07 19:36:18.264645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:36:18.267027"], ["updated_at", "2016-12-07 19:36:18.267027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:36:18.270707"], ["updated_at", "2016-12-07 19:36:18.270707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:36:18.272243"], ["updated_at", "2016-12-07 19:36:18.272243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:36:18.274746"], ["updated_at", "2016-12-07 19:36:18.274746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:36:18.276205"], ["updated_at", "2016-12-07 19:36:18.276205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:36:18.304036"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.3ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (1.9ms) Completed 200 OK in 39ms (Views: 0.2ms | ActiveRecord: 1.1ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:36:18.329779"], ["updated_at", "2016-12-07 19:36:18.329779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 19:36:18.332224"], ["updated_at", "2016-12-07 19:36:18.332224"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:36:18.334198"], ["updated_at", "2016-12-07 19:36:18.334198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:36:18.335896"], ["updated_at", "2016-12-07 19:36:18.335896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 19:36:18.338506"], ["updated_at", "2016-12-07 19:36:18.338506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:36:18.339936"], ["updated_at", "2016-12-07 19:36:18.339936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 19:36:18.343035"], ["updated_at", "2016-12-07 19:36:18.343035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:36:18.344731"], ["updated_at", "2016-12-07 19:36:18.344731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 19:36:18.347934"], ["updated_at", "2016-12-07 19:36:18.347934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:36:18.349684"], ["updated_at", "2016-12-07 19:36:18.349684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:36:18.357275"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:36:18.359890"], ["updated_at", "2016-12-07 19:36:18.359890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6391c9d6-086f-4dca-afc4-933fe717bab1) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:36:18.339936"], ["updated_at", "2016-12-07 19:36:18.339936"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:36:18.375124"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:36:18.344731"], ["updated_at", "2016-12-07 19:36:18.344731"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:36:18.382220"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:36:18.349684"], ["updated_at", "2016-12-07 19:36:18.349684"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:36:18.386896"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:36:18.393074"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6391c9d6-086f-4dca-afc4-933fe717bab1] Performed Pulitzer::CloneVersionJob from Inline(default) in 32.18ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:36:18.404728"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.8ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (5.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.8ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.7ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (8.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (36.2ms) Completed 200 OK in 42ms (Views: 0.4ms | ActiveRecord: 1.0ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:36:18.452332"], ["updated_at", "2016-12-07 19:36:18.452332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 19:36:18.455329"], ["updated_at", "2016-12-07 19:36:18.455329"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:36:18.457325"], ["updated_at", "2016-12-07 19:36:18.457325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:36:18.458855"], ["updated_at", "2016-12-07 19:36:18.458855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 19:36:18.461385"], ["updated_at", "2016-12-07 19:36:18.461385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:36:18.462939"], ["updated_at", "2016-12-07 19:36:18.462939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 19:36:18.465512"], ["updated_at", "2016-12-07 19:36:18.465512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:36:18.467048"], ["updated_at", "2016-12-07 19:36:18.467048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 19:36:18.470213"], ["updated_at", "2016-12-07 19:36:18.470213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:36:18.471773"], ["updated_at", "2016-12-07 19:36:18.471773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:36:18.475348"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:36:18.477716"], ["updated_at", "2016-12-07 19:36:18.477716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 7e6a68e5-03c7-4986-9d61-a82912d2212c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:36:18.462939"], ["updated_at", "2016-12-07 19:36:18.462939"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:36:18.488887"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:36:18.467048"], ["updated_at", "2016-12-07 19:36:18.467048"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:36:18.494190"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:36:18.471773"], ["updated_at", "2016-12-07 19:36:18.471773"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:36:18.501325"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:36:18.504061"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7e6a68e5-03c7-4986-9d61-a82912d2212c] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.87ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:36:18.515464"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:36:18.518344"], ["updated_at", "2016-12-07 19:36:18.518344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 829d0965-2115-4549-88fb-8e9ae3fd6eff) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:36:18.462939"], ["updated_at", "2016-12-07 19:36:18.462939"]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:36:18.525980"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:36:18.467048"], ["updated_at", "2016-12-07 19:36:18.467048"]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:36:18.531449"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:36:18.471773"], ["updated_at", "2016-12-07 19:36:18.471773"]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:36:18.536969"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:36:18.539718"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [829d0965-2115-4549-88fb-8e9ae3fd6eff] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.21ms Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (7.5ms) Completed 200 OK in 38ms (Views: 0.3ms | ActiveRecord: 2.2ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.5ms) 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.7ms) 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.8ms) 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.7ms) 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';  (0.8ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (0.6ms) 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.8ms) 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.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:39:21.950759"], ["updated_at", "2016-12-07 19:39:21.950759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:39:22.057704"], ["updated_at", "2016-12-07 19:39:22.057704"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:39:22.066267"], ["updated_at", "2016-12-07 19:39:22.066267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:39:22.069065"], ["updated_at", "2016-12-07 19:39:22.069065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:39:22.084781"], ["updated_at", "2016-12-07 19:39:22.084781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:39:22.087316"], ["updated_at", "2016-12-07 19:39:22.087316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:39:22.091314"], ["updated_at", "2016-12-07 19:39:22.091314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:39:22.092797"], ["updated_at", "2016-12-07 19:39:22.092797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:39:22.095223"], ["updated_at", "2016-12-07 19:39:22.095223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:39:22.096703"], ["updated_at", "2016-12-07 19:39:22.096703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:39:22.125661"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (2.6ms) Completed 200 OK in 42ms (Views: 0.2ms | ActiveRecord: 1.0ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:39:22.153098"], ["updated_at", "2016-12-07 19:39:22.153098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 19:39:22.155795"], ["updated_at", "2016-12-07 19:39:22.155795"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:39:22.158070"], ["updated_at", "2016-12-07 19:39:22.158070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:39:22.160424"], ["updated_at", "2016-12-07 19:39:22.160424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 19:39:22.164247"], ["updated_at", "2016-12-07 19:39:22.164247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:39:22.166147"], ["updated_at", "2016-12-07 19:39:22.166147"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 19:39:22.170459"], ["updated_at", "2016-12-07 19:39:22.170459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:39:22.173062"], ["updated_at", "2016-12-07 19:39:22.173062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 19:39:22.177313"], ["updated_at", "2016-12-07 19:39:22.177313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:39:22.181043"], ["updated_at", "2016-12-07 19:39:22.181043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:39:22.193176"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:39:22.195586"], ["updated_at", "2016-12-07 19:39:22.195586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: fe42e6d6-046a-44d5-8570-4677289d19e9) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] 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]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:39:22.166147"], ["updated_at", "2016-12-07 19:39:22.166147"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:39:22.214923"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:39:22.173062"], ["updated_at", "2016-12-07 19:39:22.173062"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:39:22.220899"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:39:22.181043"], ["updated_at", "2016-12-07 19:39:22.181043"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:39:22.226125"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:39:22.232349"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe42e6d6-046a-44d5-8570-4677289d19e9] Performed Pulitzer::CloneVersionJob from Inline(default) in 37.42ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:39:22.244543"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.4ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.9ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.8ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (36.3ms) Completed 200 OK in 43ms (Views: 0.3ms | ActiveRecord: 1.2ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:39:22.293628"], ["updated_at", "2016-12-07 19:39:22.293628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 19:39:22.296218"], ["updated_at", "2016-12-07 19:39:22.296218"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:39:22.297920"], ["updated_at", "2016-12-07 19:39:22.297920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:39:22.299678"], ["updated_at", "2016-12-07 19:39:22.299678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 19:39:22.302409"], ["updated_at", "2016-12-07 19:39:22.302409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:39:22.304257"], ["updated_at", "2016-12-07 19:39:22.304257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 19:39:22.307228"], ["updated_at", "2016-12-07 19:39:22.307228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:39:22.308766"], ["updated_at", "2016-12-07 19:39:22.308766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 19:39:22.311220"], ["updated_at", "2016-12-07 19:39:22.311220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:39:22.312895"], ["updated_at", "2016-12-07 19:39:22.312895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:39:22.316916"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:39:22.319505"], ["updated_at", "2016-12-07 19:39:22.319505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 57b29600-057b-4a9e-b1b6-0e808b099619) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:39:22.304257"], ["updated_at", "2016-12-07 19:39:22.304257"]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:39:22.329905"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:39:22.308766"], ["updated_at", "2016-12-07 19:39:22.308766"]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:39:22.334264"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:39:22.312895"], ["updated_at", "2016-12-07 19:39:22.312895"]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:39:22.339316"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:39:22.341962"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [57b29600-057b-4a9e-b1b6-0e808b099619] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.94ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:39:22.353563"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:39:22.356143"], ["updated_at", "2016-12-07 19:39:22.356143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 94d99a91-1979-48a6-afe2-9904c07b9ac8) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:39:22.304257"], ["updated_at", "2016-12-07 19:39:22.304257"]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:39:22.364291"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:39:22.308766"], ["updated_at", "2016-12-07 19:39:22.308766"]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:39:22.368646"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:39:22.312895"], ["updated_at", "2016-12-07 19:39:22.312895"]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:39:22.374098"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:39:22.376590"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [94d99a91-1979-48a6-afe2-9904c07b9ac8] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.69ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (6.6ms) Completed 200 OK in 36ms (Views: 0.2ms | ActiveRecord: 2.4ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:39:22.405075"], ["updated_at", "2016-12-07 19:39:22.405075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 19:39:22.407645"], ["updated_at", "2016-12-07 19:39:22.407645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.7ms) DELETE FROM "pulitzer_posts";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) 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';  (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';  (0.7ms) 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.8ms) 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';  (0.7ms) 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.6ms) 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.6ms) DELETE FROM "pulitzer_free_form_section_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) 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.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:44:46.431181"], ["updated_at", "2016-12-07 19:44:46.431181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:44:46.544332"], ["updated_at", "2016-12-07 19:44:46.544332"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:44:46.554394"], ["updated_at", "2016-12-07 19:44:46.554394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:44:46.556945"], ["updated_at", "2016-12-07 19:44:46.556945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:44:46.569401"], ["updated_at", "2016-12-07 19:44:46.569401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:44:46.572608"], ["updated_at", "2016-12-07 19:44:46.572608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:44:46.575662"], ["updated_at", "2016-12-07 19:44:46.575662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:44:46.577604"], ["updated_at", "2016-12-07 19:44:46.577604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:44:46.580645"], ["updated_at", "2016-12-07 19:44:46.580645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:44:46.582362"], ["updated_at", "2016-12-07 19:44:46.582362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:44:46.608232"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (2.4ms) Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 0.9ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:44:46.634250"], ["updated_at", "2016-12-07 19:44:46.634250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 19:44:46.636920"], ["updated_at", "2016-12-07 19:44:46.636920"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:44:46.638419"], ["updated_at", "2016-12-07 19:44:46.638419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:44:46.639701"], ["updated_at", "2016-12-07 19:44:46.639701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 19:44:46.642749"], ["updated_at", "2016-12-07 19:44:46.642749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:44:46.644668"], ["updated_at", "2016-12-07 19:44:46.644668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 19:44:46.647428"], ["updated_at", "2016-12-07 19:44:46.647428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:44:46.648815"], ["updated_at", "2016-12-07 19:44:46.648815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 19:44:46.651115"], ["updated_at", "2016-12-07 19:44:46.651115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:44:46.653169"], ["updated_at", "2016-12-07 19:44:46.653169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:44:46.661257"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:44:46.663677"], ["updated_at", "2016-12-07 19:44:46.663677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 82a9a4dd-1e11-47af-89c8-536771b35bf0) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:44:46.644668"], ["updated_at", "2016-12-07 19:44:46.644668"]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:44:46.678960"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:44:46.648815"], ["updated_at", "2016-12-07 19:44:46.648815"]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:44:46.683202"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:44:46.653169"], ["updated_at", "2016-12-07 19:44:46.653169"]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:44:46.689028"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:44:46.695388"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [82a9a4dd-1e11-47af-89c8-536771b35bf0] Performed Pulitzer::CloneVersionJob from Inline(default) in 30.8ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:44:46.707482"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.5ms) Pulitzer::PostTag Load (0.2ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (5.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (7.1ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.5ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (6.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (35.0ms) Completed 200 OK in 42ms (Views: 0.4ms | ActiveRecord: 1.2ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:44:46.753540"], ["updated_at", "2016-12-07 19:44:46.753540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 19:44:46.756096"], ["updated_at", "2016-12-07 19:44:46.756096"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:44:46.757624"], ["updated_at", "2016-12-07 19:44:46.757624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:44:46.758940"], ["updated_at", "2016-12-07 19:44:46.758940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 19:44:46.761736"], ["updated_at", "2016-12-07 19:44:46.761736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:44:46.763282"], ["updated_at", "2016-12-07 19:44:46.763282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 19:44:46.766246"], ["updated_at", "2016-12-07 19:44:46.766246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:44:46.767865"], ["updated_at", "2016-12-07 19:44:46.767865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 19:44:46.771528"], ["updated_at", "2016-12-07 19:44:46.771528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:44:46.772942"], ["updated_at", "2016-12-07 19:44:46.772942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:44:46.776143"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:44:46.778467"], ["updated_at", "2016-12-07 19:44:46.778467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6f21b373-db98-42e9-b3cf-81233f9f0368) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:44:46.763282"], ["updated_at", "2016-12-07 19:44:46.763282"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:44:46.787887"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:44:46.767865"], ["updated_at", "2016-12-07 19:44:46.767865"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:44:46.792478"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:44:46.772942"], ["updated_at", "2016-12-07 19:44:46.772942"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:44:46.797220"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:44:46.799543"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6f21b373-db98-42e9-b3cf-81233f9f0368] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.17ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:44:46.811573"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:44:46.814365"], ["updated_at", "2016-12-07 19:44:46.814365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 1c0b0dee-92cf-4342-af32-061b674151a9) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:44:46.763282"], ["updated_at", "2016-12-07 19:44:46.763282"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:44:46.823137"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:44:46.767865"], ["updated_at", "2016-12-07 19:44:46.767865"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:44:46.827409"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:44:46.772942"], ["updated_at", "2016-12-07 19:44:46.772942"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:44:46.831551"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:44:46.833707"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1c0b0dee-92cf-4342-af32-061b674151a9] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.72ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (6.1ms) Completed 200 OK in 34ms (Views: 0.2ms | ActiveRecord: 2.1ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.2ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:44:46.854495"], ["updated_at", "2016-12-07 19:44:46.854495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 19:44:46.857345"], ["updated_at", "2016-12-07 19:44:46.857345"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:44:46.859493"], ["updated_at", "2016-12-07 19:44:46.859493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:44:46.861336"], ["updated_at", "2016-12-07 19:44:46.861336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-07 19:44:46.863743"], ["updated_at", "2016-12-07 19:44:46.863743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:44:46.865171"], ["updated_at", "2016-12-07 19:44:46.865171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-07 19:44:46.867764"], ["updated_at", "2016-12-07 19:44:46.867764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:44:46.869695"], ["updated_at", "2016-12-07 19:44:46.869695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-07 19:44:46.872378"], ["updated_at", "2016-12-07 19:44:46.872378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:44:46.873726"], ["updated_at", "2016-12-07 19:44:46.873726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "post_id" = NULL WHERE "pulitzer_versions"."id" = ? [["id", 2]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"active", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Completed 500 Internal Server Error in 4ms  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.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';  (0.8ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (0.8ms) 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.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.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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:45:27.934983"], ["updated_at", "2016-12-07 19:45:27.934983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (4.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (19.4ms) Completed 200 OK in 45ms (Views: 28.3ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:45:27.994661"], ["updated_at", "2016-12-07 19:45:27.994661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (6.9ms) Completed 200 OK in 15ms (Views: 8.6ms | ActiveRecord: 0.6ms) Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:45:28.018182"], ["updated_at", "2016-12-07 19:45:28.018182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (9.3ms) Completed 200 OK in 13ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:45:28.042832"], ["updated_at", "2016-12-07 19:45:28.042832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (6.3ms) Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:45:28.063946"], ["updated_at", "2016-12-07 19:45:28.063946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:45:28.082631"], ["updated_at", "2016-12-07 19:45:28.082631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (12.8ms) Completed 200 OK in 25ms (Views: 16.8ms | ActiveRecord: 0.8ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:45:28.126182"], ["updated_at", "2016-12-07 19:45:28.126182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.4ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (10.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (12.0ms) Completed 200 OK in 25ms (Views: 13.7ms | ActiveRecord: 1.1ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:45:28.162994"], ["updated_at", "2016-12-07 19:45:28.162994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (26.5ms) Completed 200 OK in 30ms (Views: 28.5ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:45:28.203608"], ["updated_at", "2016-12-07 19:45:28.203608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:45:28.208974"], ["updated_at", "2016-12-07 19:45:28.208974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.3ms) Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:28.235848"], ["updated_at", "2016-12-07 19:45:28.235848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:45:28.335758"], ["updated_at", "2016-12-07 19:45:28.335758"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:28.338601"], ["updated_at", "2016-12-07 19:45:28.338601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:28.341186"], ["updated_at", "2016-12-07 19:45:28.341186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:45:28.352243"], ["updated_at", "2016-12-07 19:45:28.352243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:45:28.354634"], ["updated_at", "2016-12-07 19:45:28.354634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:45:28.357836"], ["updated_at", "2016-12-07 19:45:28.357836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:45:28.359312"], ["updated_at", "2016-12-07 19:45:28.359312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:45:28.361852"], ["updated_at", "2016-12-07 19:45:28.361852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:45:28.363271"], ["updated_at", "2016-12-07 19:45:28.363271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:45:28.374511"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (1.4ms) Completed 200 OK in 19ms (Views: 0.2ms | ActiveRecord: 0.9ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:28.394929"], ["updated_at", "2016-12-07 19:45:28.394929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 19:45:28.397778"], ["updated_at", "2016-12-07 19:45:28.397778"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:28.399462"], ["updated_at", "2016-12-07 19:45:28.399462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:28.401460"], ["updated_at", "2016-12-07 19:45:28.401460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 19:45:28.404047"], ["updated_at", "2016-12-07 19:45:28.404047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:45:28.405540"], ["updated_at", "2016-12-07 19:45:28.405540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 19:45:28.408610"], ["updated_at", "2016-12-07 19:45:28.408610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:45:28.410065"], ["updated_at", "2016-12-07 19:45:28.410065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 19:45:28.412416"], ["updated_at", "2016-12-07 19:45:28.412416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:45:28.413747"], ["updated_at", "2016-12-07 19:45:28.413747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:45:28.419895"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:45:28.422530"], ["updated_at", "2016-12-07 19:45:28.422530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 644dad3e-742b-4e17-ab5e-485d6ca40e3c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] 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]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:45:28.405540"], ["updated_at", "2016-12-07 19:45:28.405540"]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:28.435120"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:45:28.410065"], ["updated_at", "2016-12-07 19:45:28.410065"]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:28.439610"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:45:28.413747"], ["updated_at", "2016-12-07 19:45:28.413747"]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:28.445738"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:45:28.449235"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [644dad3e-742b-4e17-ab5e-485d6ca40e3c] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.02ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:45:28.460447"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.1ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (5.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (8.6ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.8ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (8.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (34.1ms) Completed 200 OK in 41ms (Views: 0.4ms | ActiveRecord: 1.0ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:28.506031"], ["updated_at", "2016-12-07 19:45:28.506031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 19:45:28.508775"], ["updated_at", "2016-12-07 19:45:28.508775"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:28.510310"], ["updated_at", "2016-12-07 19:45:28.510310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:28.511807"], ["updated_at", "2016-12-07 19:45:28.511807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 19:45:28.514336"], ["updated_at", "2016-12-07 19:45:28.514336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:45:28.515742"], ["updated_at", "2016-12-07 19:45:28.515742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 19:45:28.518067"], ["updated_at", "2016-12-07 19:45:28.518067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:45:28.519359"], ["updated_at", "2016-12-07 19:45:28.519359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 19:45:28.521686"], ["updated_at", "2016-12-07 19:45:28.521686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:45:28.523134"], ["updated_at", "2016-12-07 19:45:28.523134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:45:28.527925"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:45:28.530606"], ["updated_at", "2016-12-07 19:45:28.530606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b1c547a3-0289-41ed-8517-75c6c5071086) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:45:28.515742"], ["updated_at", "2016-12-07 19:45:28.515742"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:28.538969"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:45:28.519359"], ["updated_at", "2016-12-07 19:45:28.519359"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:28.544565"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:45:28.523134"], ["updated_at", "2016-12-07 19:45:28.523134"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:28.549991"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:45:28.552462"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1c547a3-0289-41ed-8517-75c6c5071086] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.62ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:45:28.565466"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:45:28.568423"], ["updated_at", "2016-12-07 19:45:28.568423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: de270d3a-d6e2-4400-b1d8-36c2e661abb9) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:45:28.515742"], ["updated_at", "2016-12-07 19:45:28.515742"]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:45:28.577382"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:45:28.519359"], ["updated_at", "2016-12-07 19:45:28.519359"]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:45:28.582369"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:45:28.523134"], ["updated_at", "2016-12-07 19:45:28.523134"]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:45:28.586965"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:45:28.590449"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [de270d3a-d6e2-4400-b1d8-36c2e661abb9] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.09ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.2ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (7.7ms) Completed 200 OK in 40ms (Views: 0.3ms | ActiveRecord: 2.4ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-12-07 19:45:28.617689"], ["updated_at", "2016-12-07 19:45:28.617689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:45:28.621883"], ["updated_at", "2016-12-07 19:45:28.621883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-12-07 19:45:28.637184"], ["updated_at", "2016-12-07 19:45:28.637184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:45:28.639736"], ["updated_at", "2016-12-07 19:45:28.639736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-12-07 19:45:28.650299"], ["updated_at", "2016-12-07 19:45:28.650299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:45:28.652930"], ["updated_at", "2016-12-07 19:45:28.652930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-12-07 19:45:28.664702"], ["updated_at", "2016-12-07 19:45:28.664702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-12-07 19:45:28.676543"], ["updated_at", "2016-12-07 19:45:28.676543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-12-07 19:45:28.718854"], ["updated_at", "2016-12-07 19:45:28.718854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.3ms) Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-12-07 19:45:28.733883"], ["updated_at", "2016-12-07 19:45:28.733883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (2.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 19:45:28.743306"], ["updated_at", "2016-12-07 19:45:28.743306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.3ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 19:45:28.762222"], ["updated_at", "2016-12-07 19:45:28.762222"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-12-07 19:45:28.779143"], ["updated_at", "2016-12-07 19:45:28.779143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-12-07 19:45:28.791815"], ["updated_at", "2016-12-07 19:45:28.791815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-12-07 19:45:28.810573"], ["updated_at", "2016-12-07 19:45:28.810573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-12-07 19:45:28.832973"], ["updated_at", "2016-12-07 19:45:28.832973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.5ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-12-07 19:45:28.841874"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 19:45:28.848750"], ["updated_at", "2016-12-07 19:45:28.848750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-12-07 19:45:28.852599"], ["updated_at", "2016-12-07 19:45:28.852599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 409 Conflict in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 19:45:28.864957"], ["updated_at", "2016-12-07 19:45:28.864957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-12-07 19:45:28.869208"], ["updated_at", "2016-12-07 19:45:28.869208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-12-07 19:45:28.884059"], ["updated_at", "2016-12-07 19:45:28.884059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-12-07 19:45:28.894152"], ["updated_at", "2016-12-07 19:45:28.894152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:28.908783"], ["updated_at", "2016-12-07 19:45:28.908783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 19:45:28.911477"], ["updated_at", "2016-12-07 19:45:28.911477"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:28.913316"], ["updated_at", "2016-12-07 19:45:28.913316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:28.914712"], ["updated_at", "2016-12-07 19:45:28.914712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-07 19:45:28.918533"], ["updated_at", "2016-12-07 19:45:28.918533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:45:28.920675"], ["updated_at", "2016-12-07 19:45:28.920675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-07 19:45:28.924318"], ["updated_at", "2016-12-07 19:45:28.924318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:45:28.926859"], ["updated_at", "2016-12-07 19:45:28.926859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-07 19:45:28.929483"], ["updated_at", "2016-12-07 19:45:28.929483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:45:28.931284"], ["updated_at", "2016-12-07 19:45:28.931284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:45:28.933970"], ["updated_at", "2016-12-07 19:45:28.933970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:45:28.920675"], ["updated_at", "2016-12-07 19:45:28.920675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:28.940651"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:45:28.926859"], ["updated_at", "2016-12-07 19:45:28.926859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:28.945639"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:45:28.931284"], ["updated_at", "2016-12-07 19:45:28.931284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:28.950387"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:45:28.952816"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:28.963097"], ["updated_at", "2016-12-07 19:45:28.963097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-12-07 19:45:28.966147"], ["updated_at", "2016-12-07 19:45:28.966147"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:28.968081"], ["updated_at", "2016-12-07 19:45:28.968081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:28.969618"], ["updated_at", "2016-12-07 19:45:28.969618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:45:28.975764"], ["updated_at", "2016-12-07 19:45:28.975764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:45:28.988210"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:28.998729"], ["updated_at", "2016-12-07 19:45:28.998729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-12-07 19:45:29.001754"], ["updated_at", "2016-12-07 19:45:29.001754"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.003822"], ["updated_at", "2016-12-07 19:45:29.003822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.005651"], ["updated_at", "2016-12-07 19:45:29.005651"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-12-07 19:45:29.010338"], ["updated_at", "2016-12-07 19:45:29.010338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.012053"], ["updated_at", "2016-12-07 19:45:29.012053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-12-07 19:45:29.014782"], ["updated_at", "2016-12-07 19:45:29.014782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.016677"], ["updated_at", "2016-12-07 19:45:29.016677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-12-07 19:45:29.019736"], ["updated_at", "2016-12-07 19:45:29.019736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.021255"], ["updated_at", "2016-12-07 19:45:29.021255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:45:29.024014"], ["updated_at", "2016-12-07 19:45:29.024014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:45:29.012053"], ["updated_at", "2016-12-07 19:45:29.012053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.030500"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:45:29.016677"], ["updated_at", "2016-12-07 19:45:29.016677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.036431"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:45:29.021255"], ["updated_at", "2016-12-07 19:45:29.021255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.043108"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:45:29.045550"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.055907"], ["updated_at", "2016-12-07 19:45:29.055907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-12-07 19:45:29.063717"], ["updated_at", "2016-12-07 19:45:29.063717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 19:45:29.065324"], ["updated_at", "2016-12-07 19:45:29.065324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-12-07 19:45:29.067683"], ["updated_at", "2016-12-07 19:45:29.067683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 19:45:29.069102"], ["updated_at", "2016-12-07 19:45:29.069102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-12-07 19:45:29.072080"], ["updated_at", "2016-12-07 19:45:29.072080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 19:45:29.073717"], ["updated_at", "2016-12-07 19:45:29.073717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 19:45:29.084874"], ["updated_at", "2016-12-07 19:45:29.084874"]]  (0.0ms) RELEASE SAVEPOINT active_record_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 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 19:45:29.089451"], ["updated_at", "2016-12-07 19:45:29.089451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 19:45:29.093713"], ["updated_at", "2016-12-07 19:45:29.093713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.098542"], ["updated_at", "2016-12-07 19:45:29.098542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-12-07 19:45:29.101548"], ["updated_at", "2016-12-07 19:45:29.101548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 19:45:29.103158"], ["updated_at", "2016-12-07 19:45:29.103158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-12-07 19:45:29.105982"], ["updated_at", "2016-12-07 19:45:29.105982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 19:45:29.109150"], ["updated_at", "2016-12-07 19:45:29.109150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-12-07 19:45:29.111676"], ["updated_at", "2016-12-07 19:45:29.111676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 19:45:29.112907"], ["updated_at", "2016-12-07 19:45:29.112907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-12-07 19:45:29.116081"], ["updated_at", "2016-12-07 19:45:29.116081"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.118735"], ["updated_at", "2016-12-07 19:45:29.118735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 19:45:29.126988"], ["updated_at", "2016-12-07 19:45:29.126988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 19:45:29.132241"], ["updated_at", "2016-12-07 19:45:29.132241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 19:45:29.137517"], ["updated_at", "2016-12-07 19:45:29.137517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.5ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.147010"], ["updated_at", "2016-12-07 19:45:29.147010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-12-07 19:45:29.154562"], ["updated_at", "2016-12-07 19:45:29.154562"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.156301"], ["updated_at", "2016-12-07 19:45:29.156301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.173397"], ["updated_at", "2016-12-07 19:45:29.173397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-12-07 19:45:29.176428"], ["updated_at", "2016-12-07 19:45:29.176428"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.178103"], ["updated_at", "2016-12-07 19:45:29.178103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.180619"], ["updated_at", "2016-12-07 19:45:29.180619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-12-07 19:45:29.184358"], ["updated_at", "2016-12-07 19:45:29.184358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.185998"], ["updated_at", "2016-12-07 19:45:29.185998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-12-07 19:45:29.188448"], ["updated_at", "2016-12-07 19:45:29.188448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.191319"], ["updated_at", "2016-12-07 19:45:29.191319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-12-07 19:45:29.194813"], ["updated_at", "2016-12-07 19:45:29.194813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.196416"], ["updated_at", "2016-12-07 19:45:29.196416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:45:29.198782"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:45:29.202870"], ["updated_at", "2016-12-07 19:45:29.202870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 21d5a062-8c1c-47db-a85f-b58d8b4d21f7) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:45:29.185998"], ["updated_at", "2016-12-07 19:45:29.185998"]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.213123"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:45:29.191319"], ["updated_at", "2016-12-07 19:45:29.191319"]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.217514"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:45:29.196416"], ["updated_at", "2016-12-07 19:45:29.196416"]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.221917"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:45:29.225938"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [21d5a062-8c1c-47db-a85f-b58d8b4d21f7] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.88ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.240489"], ["updated_at", "2016-12-07 19:45:29.240489"]]  (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 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-12-07 19:45:29.243110"], ["updated_at", "2016-12-07 19:45:29.243110"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.244865"], ["updated_at", "2016-12-07 19:45:29.244865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.246442"], ["updated_at", "2016-12-07 19:45:29.246442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-12-07 19:45:29.249311"], ["updated_at", "2016-12-07 19:45:29.249311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.250947"], ["updated_at", "2016-12-07 19:45:29.250947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-12-07 19:45:29.253575"], ["updated_at", "2016-12-07 19:45:29.253575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.255151"], ["updated_at", "2016-12-07 19:45:29.255151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-12-07 19:45:29.257606"], ["updated_at", "2016-12-07 19:45:29.257606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.258964"], ["updated_at", "2016-12-07 19:45:29.258964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:45:29.261209"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:45:29.263780"], ["updated_at", "2016-12-07 19:45:29.263780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:45:29.250947"], ["updated_at", "2016-12-07 19:45:29.250947"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.271491"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:45:29.255151"], ["updated_at", "2016-12-07 19:45:29.255151"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.278469"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:45:29.258964"], ["updated_at", "2016-12-07 19:45:29.258964"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.283108"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:45:29.285539"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0ae1befc-4c3e-41a7-99f6-0e3cfd8cc461] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.48ms Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:45:29.294440"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:45:29.307831"], ["updated_at", "2016-12-07 19:45:29.307831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 0b3c7202-c8b0-4593-b82c-32f6ea4bb527) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:45:29.250947"], ["updated_at", "2016-12-07 19:45:29.250947"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:45:29.315966"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:45:29.255151"], ["updated_at", "2016-12-07 19:45:29.255151"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:45:29.320133"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:45:29.258964"], ["updated_at", "2016-12-07 19:45:29.258964"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:45:29.324275"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:45:29.326479"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b3c7202-c8b0-4593-b82c-32f6ea4bb527] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.27ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.339103"], ["updated_at", "2016-12-07 19:45:29.339103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-12-07 19:45:29.342107"], ["updated_at", "2016-12-07 19:45:29.342107"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.343714"], ["updated_at", "2016-12-07 19:45:29.343714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.345249"], ["updated_at", "2016-12-07 19:45:29.345249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-12-07 19:45:29.347765"], ["updated_at", "2016-12-07 19:45:29.347765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.349309"], ["updated_at", "2016-12-07 19:45:29.349309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-12-07 19:45:29.351815"], ["updated_at", "2016-12-07 19:45:29.351815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.353201"], ["updated_at", "2016-12-07 19:45:29.353201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-12-07 19:45:29.355520"], ["updated_at", "2016-12-07 19:45:29.355520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.356914"], ["updated_at", "2016-12-07 19:45:29.356914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:45:29.359049"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:45:29.361347"], ["updated_at", "2016-12-07 19:45:29.361347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c915d32a-0e5b-46ae-9d04-e8e4b7023f06) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:45:29.349309"], ["updated_at", "2016-12-07 19:45:29.349309"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.369189"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:45:29.353201"], ["updated_at", "2016-12-07 19:45:29.353201"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.374589"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:45:29.356914"], ["updated_at", "2016-12-07 19:45:29.356914"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.379472"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:45:29.381642"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c915d32a-0e5b-46ae-9d04-e8e4b7023f06] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.5ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:45:29.388409"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-12-07 19:45:29.401014"], ["updated_at", "2016-12-07 19:45:29.401014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.403552"], ["updated_at", "2016-12-07 19:45:29.403552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-12-07 19:45:29.405735"], ["updated_at", "2016-12-07 19:45:29.405735"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.408083"], ["updated_at", "2016-12-07 19:45:29.408083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.409598"], ["updated_at", "2016-12-07 19:45:29.409598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-12-07 19:45:29.411936"], ["updated_at", "2016-12-07 19:45:29.411936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.413308"], ["updated_at", "2016-12-07 19:45:29.413308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 32' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 32"], ["created_at", "2016-12-07 19:45:29.415749"], ["updated_at", "2016-12-07 19:45:29.415749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.417726"], ["updated_at", "2016-12-07 19:45:29.417726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 33' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 33"], ["created_at", "2016-12-07 19:45:29.421388"], ["updated_at", "2016-12-07 19:45:29.421388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.423274"], ["updated_at", "2016-12-07 19:45:29.423274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.430641"], ["updated_at", "2016-12-07 19:45:29.430641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-12-07 19:45:29.433295"], ["updated_at", "2016-12-07 19:45:29.433295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.436977"], ["updated_at", "2016-12-07 19:45:29.436977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:45:29.442702"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:45:29.444584"], ["updated_at", "2016-12-07 19:45:29.444584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 9419127c-bb09-41e2-b6b4-93a1f5c5174b) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:45:29.413308"], ["updated_at", "2016-12-07 19:45:29.413308"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.452514"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:45:29.417726"], ["updated_at", "2016-12-07 19:45:29.417726"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.456676"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:45:29.423274"], ["updated_at", "2016-12-07 19:45:29.423274"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:45:29.461226"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 19:45:29.464430"], ["updated_at", "2016-12-07 19:45:29.464430"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 19:45:29.466101"], ["updated_at", "2016-12-07 19:45:29.466101"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:45:29.467587"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9419127c-bb09-41e2-b6b4-93a1f5c5174b] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.47ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 34' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 34"], ["created_at", "2016-12-07 19:45:29.478753"], ["updated_at", "2016-12-07 19:45:29.478753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 35"], ["created_at", "2016-12-07 19:45:29.490028"], ["updated_at", "2016-12-07 19:45:29.490028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 36' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 36"], ["created_at", "2016-12-07 19:45:29.494180"], ["updated_at", "2016-12-07 19:45:29.494180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 37' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 37"], ["created_at", "2016-12-07 19:45:29.498808"], ["updated_at", "2016-12-07 19:45:29.498808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 19:45:29.504367"], ["updated_at", "2016-12-07 19:45:29.504367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 32"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:45:29.506249"], ["updated_at", "2016-12-07 19:45:29.506249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 19:45:29.512996"], ["updated_at", "2016-12-07 19:45:29.512996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 33"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:45:29.515010"], ["updated_at", "2016-12-07 19:45:29.515010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 38"], ["created_at", "2016-12-07 19:45:29.520040"], ["updated_at", "2016-12-07 19:45:29.520040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 39' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 39"], ["created_at", "2016-12-07 19:45:29.526803"], ["updated_at", "2016-12-07 19:45:29.526803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-07 19:45:29.532509"], ["updated_at", "2016-12-07 19:45:29.532509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.659909"], ["updated_at", "2016-12-07 19:45:29.659909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]]  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.684217"], ["updated_at", "2016-12-07 19:45:29.684217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-12-07 19:45:29.688378"], ["updated_at", "2016-12-07 19:45:29.688378"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.691772"], ["updated_at", "2016-12-07 19:45:29.691772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.694215"], ["updated_at", "2016-12-07 19:45:29.694215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 19:45:29.696286"], ["updated_at", "2016-12-07 19:45:29.696286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.702171"], ["updated_at", "2016-12-07 19:45:29.702171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-12-07 19:45:29.705089"], ["updated_at", "2016-12-07 19:45:29.705089"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.707899"], ["updated_at", "2016-12-07 19:45:29.707899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.713445"], ["updated_at", "2016-12-07 19:45:29.713445"]]  (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 1 [["slug", "winterfell-news-15"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-12-07 19:45:29.716047"], ["updated_at", "2016-12-07 19:45:29.716047"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.717587"], ["updated_at", "2016-12-07 19:45:29.717587"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-12-07 19:45:29.720013"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.5ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-12-07 19:45:29.727361"], ["updated_at", "2016-12-07 19:45:29.727361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.730833"], ["updated_at", "2016-12-07 19:45:29.730833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-12-07 19:45:29.733717"], ["updated_at", "2016-12-07 19:45:29.733717"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.735572"], ["updated_at", "2016-12-07 19:45:29.735572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.737354"], ["updated_at", "2016-12-07 19:45:29.737354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.762023"], ["updated_at", "2016-12-07 19:45:29.762023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 40"], ["created_at", "2016-12-07 19:45:29.765874"], ["updated_at", "2016-12-07 19:45:29.765874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.5ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-12-07 19:45:29.829413"], ["updated_at", "2016-12-07 19:45:29.829413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:45:29.844407"], ["updated_at", "2016-12-07 19:45:29.844407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-12-07 19:45:29.847070"], ["updated_at", "2016-12-07 19:45:29.847070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.855021"], ["updated_at", "2016-12-07 19:45:29.855021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-17"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 17"], ["post_type_id", 1], ["slug", "winterfell-news-17"], ["created_at", "2016-12-07 19:45:29.859945"], ["updated_at", "2016-12-07 19:45:29.859945"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.861929"], ["updated_at", "2016-12-07 19:45:29.861929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 19:45:29.863645"], ["updated_at", "2016-12-07 19:45:29.863645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-12-07 19:45:29.865621"], ["updated_at", "2016-12-07 19:45:29.865621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.867713"], ["updated_at", "2016-12-07 19:45:29.867713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:45:29.875903"], ["updated_at", "2016-12-07 19:45:29.875903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-12-07 19:45:29.878819"], ["updated_at", "2016-12-07 19:45:29.878819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-12-07 19:45:29.884170"], ["updated_at", "2016-12-07 19:45:29.884170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-12-07 19:45:29.887398"], ["updated_at", "2016-12-07 19:45:29.887398"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:45:29.888972' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-12-07 19:45:29.891923"], ["updated_at", "2016-12-07 19:45:29.891923"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:45:29.893162' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:45:29.900644"], ["updated_at", "2016-12-07 19:45:29.900644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-12-07 19:45:29.903292"], ["updated_at", "2016-12-07 19:45:29.903292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 19:45:29.905581"], ["updated_at", "2016-12-07 19:45:29.905581"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:45:29.907308' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:45:29.913255"], ["updated_at", "2016-12-07 19:45:29.913255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-12-07 19:45:29.915842"], ["updated_at", "2016-12-07 19:45:29.915842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 19:45:29.918649"], ["updated_at", "2016-12-07 19:45:29.918649"]] SQL (0.2ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:45:29.919632' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:45:29.924647"], ["updated_at", "2016-12-07 19:45:29.924647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-12-07 19:45:29.927689"], ["updated_at", "2016-12-07 19:45:29.927689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 19:45:29.938240"], ["updated_at", "2016-12-07 19:45:29.938240"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:45:29.939315' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.945852"], ["updated_at", "2016-12-07 19:45:29.945852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-18"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 18"], ["post_type_id", 1], ["slug", "winterfell-news-18"], ["created_at", "2016-12-07 19:45:29.948727"], ["updated_at", "2016-12-07 19:45:29.948727"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.950600"], ["updated_at", "2016-12-07 19:45:29.950600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-12-07 19:45:29.969644"], ["updated_at", "2016-12-07 19:45:29.969644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:45:29.972350"], ["updated_at", "2016-12-07 19:45:29.972350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-19"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 19"], ["post_type_id", 1], ["slug", "winterfell-news-19"], ["created_at", "2016-12-07 19:45:29.975332"], ["updated_at", "2016-12-07 19:45:29.975332"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.977513"], ["updated_at", "2016-12-07 19:45:29.977513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:45:29.980125"], ["updated_at", "2016-12-07 19:45:29.980125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 19:45:29.982830"], ["updated_at", "2016-12-07 19:45:29.982830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.7ms) 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.6ms) 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.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';  (0.7ms) 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';  (0.9ms) 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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:52:29.485637"], ["updated_at", "2016-12-07 19:52:29.485637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (22.2ms) Completed 200 OK in 53ms (Views: 32.3ms | ActiveRecord: 0.5ms)  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:52:29.553633"], ["updated_at", "2016-12-07 19:52:29.553633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (8.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (9.8ms) Completed 200 OK in 18ms (Views: 11.5ms | ActiveRecord: 0.6ms) Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:52:29.580776"], ["updated_at", "2016-12-07 19:52:29.580776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (8.6ms) Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:52:29.604794"], ["updated_at", "2016-12-07 19:52:29.604794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.7ms) Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 19:52:29.624740"], ["updated_at", "2016-12-07 19:52:29.624740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:52:29.641492"], ["updated_at", "2016-12-07 19:52:29.641492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (14.0ms) Completed 200 OK in 26ms (Views: 17.7ms | ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:52:29.682608"], ["updated_at", "2016-12-07 19:52:29.682608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (2.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (10.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (14.0ms) Completed 200 OK in 40ms (Views: 15.9ms | ActiveRecord: 1.5ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:52:29.735553"], ["updated_at", "2016-12-07 19:52:29.735553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (14.6ms) Completed 200 OK in 18ms (Views: 16.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:52:29.766156"], ["updated_at", "2016-12-07 19:52:29.766156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 19:52:29.772712"], ["updated_at", "2016-12-07 19:52:29.772712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (6.7ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:29.805555"], ["updated_at", "2016-12-07 19:52:29.805555"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 19:52:29.906681"], ["updated_at", "2016-12-07 19:52:29.906681"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:29.909461"], ["updated_at", "2016-12-07 19:52:29.909461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:29.911437"], ["updated_at", "2016-12-07 19:52:29.911437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 19:52:29.923155"], ["updated_at", "2016-12-07 19:52:29.923155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:52:29.925685"], ["updated_at", "2016-12-07 19:52:29.925685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 19:52:29.928427"], ["updated_at", "2016-12-07 19:52:29.928427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:52:29.929803"], ["updated_at", "2016-12-07 19:52:29.929803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 19:52:29.932555"], ["updated_at", "2016-12-07 19:52:29.932555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:52:29.935023"], ["updated_at", "2016-12-07 19:52:29.935023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:52:29.947545"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (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", 2]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (1.1ms) Completed 200 OK in 25ms (Views: 0.2ms | ActiveRecord: 1.6ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:29.994434"], ["updated_at", "2016-12-07 19:52:29.994434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 19:52:29.997135"], ["updated_at", "2016-12-07 19:52:29.997135"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:29.998876"], ["updated_at", "2016-12-07 19:52:29.998876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.000386"], ["updated_at", "2016-12-07 19:52:30.000386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 19:52:30.003845"], ["updated_at", "2016-12-07 19:52:30.003845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.006067"], ["updated_at", "2016-12-07 19:52:30.006067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 19:52:30.011687"], ["updated_at", "2016-12-07 19:52:30.011687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.013948"], ["updated_at", "2016-12-07 19:52:30.013948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 19:52:30.017161"], ["updated_at", "2016-12-07 19:52:30.017161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.019323"], ["updated_at", "2016-12-07 19:52:30.019323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:52:30.028687"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:52:30.031506"], ["updated_at", "2016-12-07 19:52:30.031506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b0cbde68-5e61-4f74-b1ae-a50563560caf) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:52:30.006067"], ["updated_at", "2016-12-07 19:52:30.006067"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.042795"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:52:30.013948"], ["updated_at", "2016-12-07 19:52:30.013948"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.048017"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:52:30.019323"], ["updated_at", "2016-12-07 19:52:30.019323"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.054117"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:52:30.057460"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0cbde68-5e61-4f74-b1ae-a50563560caf] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.38ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:52:30.070022"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (4.4ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.6ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (5.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (5.9ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (9.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (37.2ms) Completed 200 OK in 44ms (Views: 0.5ms | ActiveRecord: 1.0ms) Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:30.122889"], ["updated_at", "2016-12-07 19:52:30.122889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 19:52:30.125460"], ["updated_at", "2016-12-07 19:52:30.125460"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.127132"], ["updated_at", "2016-12-07 19:52:30.127132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.128661"], ["updated_at", "2016-12-07 19:52:30.128661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 19:52:30.131233"], ["updated_at", "2016-12-07 19:52:30.131233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.132731"], ["updated_at", "2016-12-07 19:52:30.132731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 19:52:30.136134"], ["updated_at", "2016-12-07 19:52:30.136134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.137696"], ["updated_at", "2016-12-07 19:52:30.137696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 19:52:30.140185"], ["updated_at", "2016-12-07 19:52:30.140185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.141586"], ["updated_at", "2016-12-07 19:52:30.141586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:52:30.145460"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:52:30.148219"], ["updated_at", "2016-12-07 19:52:30.148219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: e8522ac8-d365-46a5-826b-faaa1d905305) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:52:30.132731"], ["updated_at", "2016-12-07 19:52:30.132731"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.158104"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:52:30.137696"], ["updated_at", "2016-12-07 19:52:30.137696"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.163287"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:52:30.141586"], ["updated_at", "2016-12-07 19:52:30.141586"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.168699"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:52:30.171487"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e8522ac8-d365-46a5-826b-faaa1d905305] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.71ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:52:30.182943"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:52:30.185518"], ["updated_at", "2016-12-07 19:52:30.185518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 72232742-f4f2-4dc8-9db8-19e81522df4a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:52:30.132731"], ["updated_at", "2016-12-07 19:52:30.132731"]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:52:30.194030"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:52:30.137696"], ["updated_at", "2016-12-07 19:52:30.137696"]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:52:30.199086"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:52:30.141586"], ["updated_at", "2016-12-07 19:52:30.141586"]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:52:30.204532"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:52:30.207000"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [72232742-f4f2-4dc8-9db8-19e81522df4a] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.15ms Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (7.7ms) Completed 200 OK in 39ms (Views: 0.2ms | ActiveRecord: 2.2ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-12-07 19:52:30.231724"], ["updated_at", "2016-12-07 19:52:30.231724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:52:30.237712"], ["updated_at", "2016-12-07 19:52:30.237712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-12-07 19:52:30.254830"], ["updated_at", "2016-12-07 19:52:30.254830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:52:30.257996"], ["updated_at", "2016-12-07 19:52:30.257996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-12-07 19:52:30.271833"], ["updated_at", "2016-12-07 19:52:30.271833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:52:30.274629"], ["updated_at", "2016-12-07 19:52:30.274629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-12-07 19:52:30.284536"], ["updated_at", "2016-12-07 19:52:30.284536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-12-07 19:52:30.296530"], ["updated_at", "2016-12-07 19:52:30.296530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.4ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.5ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-12-07 19:52:30.358071"], ["updated_at", "2016-12-07 19:52:30.358071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.3ms) Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-12-07 19:52:30.376259"], ["updated_at", "2016-12-07 19:52:30.376259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 19:52:30.382061"], ["updated_at", "2016-12-07 19:52:30.382061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 409 Conflict in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 19:52:30.398556"], ["updated_at", "2016-12-07 19:52:30.398556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-12-07 19:52:30.412193"], ["updated_at", "2016-12-07 19:52:30.412193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-12-07 19:52:30.423548"], ["updated_at", "2016-12-07 19:52:30.423548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-12-07 19:52:30.443065"], ["updated_at", "2016-12-07 19:52:30.443065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-12-07 19:52:30.455715"], ["updated_at", "2016-12-07 19:52:30.455715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-12-07 19:52:30.463067"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 19:52:30.470015"], ["updated_at", "2016-12-07 19:52:30.470015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-12-07 19:52:30.474143"], ["updated_at", "2016-12-07 19:52:30.474143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.4ms) Completed 409 Conflict in 3ms (Views: 0.9ms | ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 19:52:30.485334"], ["updated_at", "2016-12-07 19:52:30.485334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-12-07 19:52:30.489107"], ["updated_at", "2016-12-07 19:52:30.489107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.8ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-12-07 19:52:30.501080"], ["updated_at", "2016-12-07 19:52:30.501080"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-12-07 19:52:30.514233"], ["updated_at", "2016-12-07 19:52:30.514233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:30.528637"], ["updated_at", "2016-12-07 19:52:30.528637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 19:52:30.531421"], ["updated_at", "2016-12-07 19:52:30.531421"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.533173"], ["updated_at", "2016-12-07 19:52:30.533173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.535380"], ["updated_at", "2016-12-07 19:52:30.535380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-07 19:52:30.538682"], ["updated_at", "2016-12-07 19:52:30.538682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.540214"], ["updated_at", "2016-12-07 19:52:30.540214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-07 19:52:30.542905"], ["updated_at", "2016-12-07 19:52:30.542905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.544296"], ["updated_at", "2016-12-07 19:52:30.544296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-07 19:52:30.548713"], ["updated_at", "2016-12-07 19:52:30.548713"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.550370"], ["updated_at", "2016-12-07 19:52:30.550370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:52:30.554720"], ["updated_at", "2016-12-07 19:52:30.554720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:52:30.540214"], ["updated_at", "2016-12-07 19:52:30.540214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.563299"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:52:30.544296"], ["updated_at", "2016-12-07 19:52:30.544296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.567443"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:52:30.550370"], ["updated_at", "2016-12-07 19:52:30.550370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.575941"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:52:30.579212"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:30.591632"], ["updated_at", "2016-12-07 19:52:30.591632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-12-07 19:52:30.594149"], ["updated_at", "2016-12-07 19:52:30.594149"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.596467"], ["updated_at", "2016-12-07 19:52:30.596467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.598049"], ["updated_at", "2016-12-07 19:52:30.598049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:52:30.607247"], ["updated_at", "2016-12-07 19:52:30.607247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.2ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.2ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:52:30.629433"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:30.639192"], ["updated_at", "2016-12-07 19:52:30.639192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-12-07 19:52:30.642013"], ["updated_at", "2016-12-07 19:52:30.642013"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.643893"], ["updated_at", "2016-12-07 19:52:30.643893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.646101"], ["updated_at", "2016-12-07 19:52:30.646101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-12-07 19:52:30.649158"], ["updated_at", "2016-12-07 19:52:30.649158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.651019"], ["updated_at", "2016-12-07 19:52:30.651019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-12-07 19:52:30.653869"], ["updated_at", "2016-12-07 19:52:30.653869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.655355"], ["updated_at", "2016-12-07 19:52:30.655355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-12-07 19:52:30.657688"], ["updated_at", "2016-12-07 19:52:30.657688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.659165"], ["updated_at", "2016-12-07 19:52:30.659165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:52:30.661133"], ["updated_at", "2016-12-07 19:52:30.661133"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:52:30.651019"], ["updated_at", "2016-12-07 19:52:30.651019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.668314"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:52:30.655355"], ["updated_at", "2016-12-07 19:52:30.655355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.674153"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:52:30.659165"], ["updated_at", "2016-12-07 19:52:30.659165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.679723"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:52:30.682704"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:30.694642"], ["updated_at", "2016-12-07 19:52:30.694642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-12-07 19:52:30.703201"], ["updated_at", "2016-12-07 19:52:30.703201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 19:52:30.704915"], ["updated_at", "2016-12-07 19:52:30.704915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-12-07 19:52:30.707604"], ["updated_at", "2016-12-07 19:52:30.707604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 19:52:30.708916"], ["updated_at", "2016-12-07 19:52:30.708916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-12-07 19:52:30.711116"], ["updated_at", "2016-12-07 19:52:30.711116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 19:52:30.712383"], ["updated_at", "2016-12-07 19:52:30.712383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 19:52:30.723502"], ["updated_at", "2016-12-07 19:52:30.723502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 19:52:30.726759"], ["updated_at", "2016-12-07 19:52:30.726759"]]  (0.1ms) RELEASE SAVEPOINT active_record_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 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 19:52:30.731360"], ["updated_at", "2016-12-07 19:52:30.731360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:30.736738"], ["updated_at", "2016-12-07 19:52:30.736738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-12-07 19:52:30.739703"], ["updated_at", "2016-12-07 19:52:30.739703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 19:52:30.741358"], ["updated_at", "2016-12-07 19:52:30.741358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-12-07 19:52:30.743913"], ["updated_at", "2016-12-07 19:52:30.743913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 19:52:30.745601"], ["updated_at", "2016-12-07 19:52:30.745601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-12-07 19:52:30.747842"], ["updated_at", "2016-12-07 19:52:30.747842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 19:52:30.749109"], ["updated_at", "2016-12-07 19:52:30.749109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-12-07 19:52:30.752649"], ["updated_at", "2016-12-07 19:52:30.752649"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.754313"], ["updated_at", "2016-12-07 19:52:30.754313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 19:52:30.760220"], ["updated_at", "2016-12-07 19:52:30.760220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 19:52:30.764540"], ["updated_at", "2016-12-07 19:52:30.764540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 19:52:30.768846"], ["updated_at", "2016-12-07 19:52:30.768846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:30.777932"], ["updated_at", "2016-12-07 19:52:30.777932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (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 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-12-07 19:52:30.784432"], ["updated_at", "2016-12-07 19:52:30.784432"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.786778"], ["updated_at", "2016-12-07 19:52:30.786778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:30.804204"], ["updated_at", "2016-12-07 19:52:30.804204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-12-07 19:52:30.807164"], ["updated_at", "2016-12-07 19:52:30.807164"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.809426"], ["updated_at", "2016-12-07 19:52:30.809426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.811628"], ["updated_at", "2016-12-07 19:52:30.811628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-12-07 19:52:30.815372"], ["updated_at", "2016-12-07 19:52:30.815372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.817042"], ["updated_at", "2016-12-07 19:52:30.817042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-12-07 19:52:30.819925"], ["updated_at", "2016-12-07 19:52:30.819925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.821463"], ["updated_at", "2016-12-07 19:52:30.821463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-12-07 19:52:30.824042"], ["updated_at", "2016-12-07 19:52:30.824042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.825589"], ["updated_at", "2016-12-07 19:52:30.825589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:52:30.827959"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:52:30.830639"], ["updated_at", "2016-12-07 19:52:30.830639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2e7cb0ca-2976-4cd7-b831-8806f2e86c66) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:52:30.817042"], ["updated_at", "2016-12-07 19:52:30.817042"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.838196"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:52:30.821463"], ["updated_at", "2016-12-07 19:52:30.821463"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.842819"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:52:30.825589"], ["updated_at", "2016-12-07 19:52:30.825589"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.857105"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:52:30.860190"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2e7cb0ca-2976-4cd7-b831-8806f2e86c66] Performed Pulitzer::CloneVersionJob from Inline(default) in 30.9ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:30.875691"], ["updated_at", "2016-12-07 19:52:30.875691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-12-07 19:52:30.878820"], ["updated_at", "2016-12-07 19:52:30.878820"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.880871"], ["updated_at", "2016-12-07 19:52:30.880871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.882761"], ["updated_at", "2016-12-07 19:52:30.882761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-12-07 19:52:30.885784"], ["updated_at", "2016-12-07 19:52:30.885784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.887452"], ["updated_at", "2016-12-07 19:52:30.887452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-12-07 19:52:30.890371"], ["updated_at", "2016-12-07 19:52:30.890371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.892456"], ["updated_at", "2016-12-07 19:52:30.892456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-12-07 19:52:30.895471"], ["updated_at", "2016-12-07 19:52:30.895471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.899043"], ["updated_at", "2016-12-07 19:52:30.899043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:52:30.901446"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:52:30.905852"], ["updated_at", "2016-12-07 19:52:30.905852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b88c670b-6857-44d6-a746-16bb2350b617) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:52:30.887452"], ["updated_at", "2016-12-07 19:52:30.887452"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.916298"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:52:30.892456"], ["updated_at", "2016-12-07 19:52:30.892456"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.922292"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:52:30.899043"], ["updated_at", "2016-12-07 19:52:30.899043"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:30.927758"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:52:30.930612"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b88c670b-6857-44d6-a746-16bb2350b617] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.16ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:52:30.938107"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:52:30.940783"], ["updated_at", "2016-12-07 19:52:30.940783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 22405ee8-0712-434c-a07f-868e99ce6e9b) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:52:30.887452"], ["updated_at", "2016-12-07 19:52:30.887452"]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:52:30.949075"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:52:30.892456"], ["updated_at", "2016-12-07 19:52:30.892456"]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:52:30.953652"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:52:30.899043"], ["updated_at", "2016-12-07 19:52:30.899043"]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 19:52:30.957898"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:52:30.960176"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [22405ee8-0712-434c-a07f-868e99ce6e9b] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.99ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:30.972520"], ["updated_at", "2016-12-07 19:52:30.972520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-12-07 19:52:30.975099"], ["updated_at", "2016-12-07 19:52:30.975099"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.976822"], ["updated_at", "2016-12-07 19:52:30.976822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:30.978622"], ["updated_at", "2016-12-07 19:52:30.978622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-12-07 19:52:30.981241"], ["updated_at", "2016-12-07 19:52:30.981241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.982821"], ["updated_at", "2016-12-07 19:52:30.982821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-12-07 19:52:30.985529"], ["updated_at", "2016-12-07 19:52:30.985529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.987266"], ["updated_at", "2016-12-07 19:52:30.987266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-12-07 19:52:30.989843"], ["updated_at", "2016-12-07 19:52:30.989843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:52:30.991350"], ["updated_at", "2016-12-07 19:52:30.991350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.5ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:52:30.996228"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:52:30.999369"], ["updated_at", "2016-12-07 19:52:30.999369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 7682e8fd-3c9e-469d-a33f-9067ee56322c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:52:30.982821"], ["updated_at", "2016-12-07 19:52:30.982821"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:31.011150"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:52:30.987266"], ["updated_at", "2016-12-07 19:52:30.987266"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:31.016315"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:52:30.991350"], ["updated_at", "2016-12-07 19:52:30.991350"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:31.022648"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:52:31.025681"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7682e8fd-3c9e-469d-a33f-9067ee56322c] Performed Pulitzer::CloneVersionJob from Inline(default) in 29.19ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 19:52:31.034307"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-12-07 19:52:31.047941"], ["updated_at", "2016-12-07 19:52:31.047941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:31.051362"], ["updated_at", "2016-12-07 19:52:31.051362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-12-07 19:52:31.054432"], ["updated_at", "2016-12-07 19:52:31.054432"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:31.056473"], ["updated_at", "2016-12-07 19:52:31.056473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:31.058181"], ["updated_at", "2016-12-07 19:52:31.058181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-12-07 19:52:31.061025"], ["updated_at", "2016-12-07 19:52:31.061025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 19:52:31.064394"], ["updated_at", "2016-12-07 19:52:31.064394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 32' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 32"], ["created_at", "2016-12-07 19:52:31.067964"], ["updated_at", "2016-12-07 19:52:31.067964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 19:52:31.070928"], ["updated_at", "2016-12-07 19:52:31.070928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 33' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 33"], ["created_at", "2016-12-07 19:52:31.073878"], ["updated_at", "2016-12-07 19:52:31.073878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 19:52:31.075530"], ["updated_at", "2016-12-07 19:52:31.075530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 19:52:31.084695"], ["updated_at", "2016-12-07 19:52:31.084695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-12-07 19:52:31.088041"], ["updated_at", "2016-12-07 19:52:31.088041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 19:52:31.090404"], ["updated_at", "2016-12-07 19:52:31.090404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 19:52:31.095033"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 19:52:31.099208"], ["updated_at", "2016-12-07 19:52:31.099208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: acad822d-53de-45f4-a865-0ccfde99500f) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:52:31.064394"], ["updated_at", "2016-12-07 19:52:31.064394"]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:31.110649"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 19:52:31.070928"], ["updated_at", "2016-12-07 19:52:31.070928"]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:31.115700"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 19:52:31.075530"], ["updated_at", "2016-12-07 19:52:31.075530"]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 19:52:31.121200"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 19:52:31.124692"], ["updated_at", "2016-12-07 19:52:31.124692"]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 19:52:31.126524"], ["updated_at", "2016-12-07 19:52:31.126524"]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 19:52:31.128508"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [acad822d-53de-45f4-a865-0ccfde99500f] Performed Pulitzer::CloneVersionJob from Inline(default) in 32.75ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 34' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 34"], ["created_at", "2016-12-07 19:52:31.145710"], ["updated_at", "2016-12-07 19:52:31.145710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 35' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 35"], ["created_at", "2016-12-07 19:52:31.158099"], ["updated_at", "2016-12-07 19:52:31.158099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 36' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 36"], ["created_at", "2016-12-07 19:52:31.163348"], ["updated_at", "2016-12-07 19:52:31.163348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 37' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 37"], ["created_at", "2016-12-07 19:52:31.169243"], ["updated_at", "2016-12-07 19:52:31.169243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 19:52:31.174472"], ["updated_at", "2016-12-07 19:52:31.174472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 32"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:52:31.176976"], ["updated_at", "2016-12-07 19:52:31.176976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 19:52:31.183917"], ["updated_at", "2016-12-07 19:52:31.183917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 33"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 19:52:31.186013"], ["updated_at", "2016-12-07 19:52:31.186013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 38"], ["created_at", "2016-12-07 19:52:31.191711"], ["updated_at", "2016-12-07 19:52:31.191711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 39' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 39"], ["created_at", "2016-12-07 19:52:31.196935"], ["updated_at", "2016-12-07 19:52:31.196935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-07 19:52:31.202317"], ["updated_at", "2016-12-07 19:52:31.202317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:31.346653"], ["updated_at", "2016-12-07 19:52:31.346653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:31.365341"], ["updated_at", "2016-12-07 19:52:31.365341"]]  (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 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-12-07 19:52:31.369099"], ["updated_at", "2016-12-07 19:52:31.369099"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:31.371755"], ["updated_at", "2016-12-07 19:52:31.371755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:31.374516"], ["updated_at", "2016-12-07 19:52:31.374516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 19:52:31.376876"], ["updated_at", "2016-12-07 19:52:31.376876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:31.383591"], ["updated_at", "2016-12-07 19:52:31.383591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-12-07 19:52:31.387336"], ["updated_at", "2016-12-07 19:52:31.387336"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:31.390099"], ["updated_at", "2016-12-07 19:52:31.390099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:31.395561"], ["updated_at", "2016-12-07 19:52:31.395561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-12-07 19:52:31.398724"], ["updated_at", "2016-12-07 19:52:31.398724"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:31.400943"], ["updated_at", "2016-12-07 19:52:31.400943"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-12-07 19:52:31.404151"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-12-07 19:52:31.410802"], ["updated_at", "2016-12-07 19:52:31.410802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:31.415053"], ["updated_at", "2016-12-07 19:52:31.415053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-12-07 19:52:31.419128"], ["updated_at", "2016-12-07 19:52:31.419128"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:31.421161"], ["updated_at", "2016-12-07 19:52:31.421161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:31.423239"], ["updated_at", "2016-12-07 19:52:31.423239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:31.448325"], ["updated_at", "2016-12-07 19:52:31.448325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 40"], ["created_at", "2016-12-07 19:52:31.452572"], ["updated_at", "2016-12-07 19:52:31.452572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-12-07 19:52:31.530972"], ["updated_at", "2016-12-07 19:52:31.530972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:52:31.543815"], ["updated_at", "2016-12-07 19:52:31.543815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-12-07 19:52:31.546084"], ["updated_at", "2016-12-07 19:52:31.546084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.3ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:31.553250"], ["updated_at", "2016-12-07 19:52:31.553250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-17"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 17"], ["post_type_id", 1], ["slug", "winterfell-news-17"], ["created_at", "2016-12-07 19:52:31.556112"], ["updated_at", "2016-12-07 19:52:31.556112"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:31.557827"], ["updated_at", "2016-12-07 19:52:31.557827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 19:52:31.559325"], ["updated_at", "2016-12-07 19:52:31.559325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-12-07 19:52:31.561313"], ["updated_at", "2016-12-07 19:52:31.561313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 19:52:31.565923"], ["updated_at", "2016-12-07 19:52:31.565923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.3ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:52:31.576715"], ["updated_at", "2016-12-07 19:52:31.576715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-12-07 19:52:31.579107"], ["updated_at", "2016-12-07 19:52:31.579107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-12-07 19:52:31.583931"], ["updated_at", "2016-12-07 19:52:31.583931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-12-07 19:52:31.587091"], ["updated_at", "2016-12-07 19:52:31.587091"]] SQL (0.2ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:52:31.588345' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-12-07 19:52:31.591829"], ["updated_at", "2016-12-07 19:52:31.591829"]] SQL (0.3ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:52:31.593488' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:52:31.608153"], ["updated_at", "2016-12-07 19:52:31.608153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-12-07 19:52:31.611662"], ["updated_at", "2016-12-07 19:52:31.611662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 19:52:31.615206"], ["updated_at", "2016-12-07 19:52:31.615206"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:52:31.616330' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:52:31.620649"], ["updated_at", "2016-12-07 19:52:31.620649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-12-07 19:52:31.623399"], ["updated_at", "2016-12-07 19:52:31.623399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 19:52:31.625785"], ["updated_at", "2016-12-07 19:52:31.625785"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:52:31.626485' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-12-07 19:52:31.633135"], ["updated_at", "2016-12-07 19:52:31.633135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-12-07 19:52:31.637518"], ["updated_at", "2016-12-07 19:52:31.637518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 19:52:31.640611"], ["updated_at", "2016-12-07 19:52:31.640611"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 19:52:31.641723' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:31.647120"], ["updated_at", "2016-12-07 19:52:31.647120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-18"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 18"], ["post_type_id", 1], ["slug", "winterfell-news-18"], ["created_at", "2016-12-07 19:52:31.650314"], ["updated_at", "2016-12-07 19:52:31.650314"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:31.652876"], ["updated_at", "2016-12-07 19:52:31.652876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-12-07 19:52:31.674822"], ["updated_at", "2016-12-07 19:52:31.674822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 19:52:31.677365"], ["updated_at", "2016-12-07 19:52:31.677365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-19"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 19"], ["post_type_id", 1], ["slug", "winterfell-news-19"], ["created_at", "2016-12-07 19:52:31.679606"], ["updated_at", "2016-12-07 19:52:31.679606"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:31.681096"], ["updated_at", "2016-12-07 19:52:31.681096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 19:52:31.682527"], ["updated_at", "2016-12-07 19:52:31.682527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 19:52:31.684405"], ["updated_at", "2016-12-07 19:52:31.684405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.5ms) rollback transaction 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.7ms) 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.6ms) 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.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';  (0.7ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (1.4ms) 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.6ms) 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.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:10:28.772250"], ["updated_at", "2016-12-07 20:10:28.772250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (4.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (20.5ms) Completed 200 OK in 48ms (Views: 30.8ms | ActiveRecord: 0.4ms)  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:10:28.833734"], ["updated_at", "2016-12-07 20:10:28.833734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.0ms) Completed 200 OK in 15ms (Views: 8.9ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:10:28.857493"], ["updated_at", "2016-12-07 20:10:28.857493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (11.5ms) Completed 200 OK in 14ms (Views: 13.4ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:10:28.880671"], ["updated_at", "2016-12-07 20:10:28.880671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.3ms) Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:10:28.900409"], ["updated_at", "2016-12-07 20:10:28.900409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:10:28.917279"], ["updated_at", "2016-12-07 20:10:28.917279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (12.4ms) Completed 200 OK in 25ms (Views: 16.7ms | ActiveRecord: 0.6ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:10:28.960253"], ["updated_at", "2016-12-07 20:10:28.960253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.3ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (11.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (13.3ms) Completed 200 OK in 25ms (Views: 14.6ms | ActiveRecord: 1.1ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:10:28.996934"], ["updated_at", "2016-12-07 20:10:28.996934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (12.4ms) Completed 200 OK in 16ms (Views: 15.1ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:10:29.024168"], ["updated_at", "2016-12-07 20:10:29.024168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:10:29.039008"], ["updated_at", "2016-12-07 20:10:29.039008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.4ms) Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.4ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:29.068821"], ["updated_at", "2016-12-07 20:10:29.068821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 20:10:29.163821"], ["updated_at", "2016-12-07 20:10:29.163821"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.166489"], ["updated_at", "2016-12-07 20:10:29.166489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.168424"], ["updated_at", "2016-12-07 20:10:29.168424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 20:10:29.180931"], ["updated_at", "2016-12-07 20:10:29.180931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.184769"], ["updated_at", "2016-12-07 20:10:29.184769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 20:10:29.188155"], ["updated_at", "2016-12-07 20:10:29.188155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.190358"], ["updated_at", "2016-12-07 20:10:29.190358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 20:10:29.193280"], ["updated_at", "2016-12-07 20:10:29.193280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.195057"], ["updated_at", "2016-12-07 20:10:29.195057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:10:29.205434"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) 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]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (1.1ms) Completed 200 OK in 24ms (Views: 0.2ms | ActiveRecord: 1.4ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:29.249884"], ["updated_at", "2016-12-07 20:10:29.249884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 20:10:29.252863"], ["updated_at", "2016-12-07 20:10:29.252863"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.254592"], ["updated_at", "2016-12-07 20:10:29.254592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.256433"], ["updated_at", "2016-12-07 20:10:29.256433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 20:10:29.259806"], ["updated_at", "2016-12-07 20:10:29.259806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.261448"], ["updated_at", "2016-12-07 20:10:29.261448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 20:10:29.265666"], ["updated_at", "2016-12-07 20:10:29.265666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.268202"], ["updated_at", "2016-12-07 20:10:29.268202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 20:10:29.271229"], ["updated_at", "2016-12-07 20:10:29.271229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.273274"], ["updated_at", "2016-12-07 20:10:29.273274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:10:29.280131"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:10:29.285377"], ["updated_at", "2016-12-07 20:10:29.285377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 990d81a8-c3a7-4c60-afe9-690abb61975f) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] Pulitzer::Version Load (0.4ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] Pulitzer::ContentElementType Load (0.3ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:10:29.261448"], ["updated_at", "2016-12-07 20:10:29.261448"]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:29.304832"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:10:29.268202"], ["updated_at", "2016-12-07 20:10:29.268202"]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:29.309357"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:10:29.273274"], ["updated_at", "2016-12-07 20:10:29.273274"]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:29.313886"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:10:29.316134"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [990d81a8-c3a7-4c60-afe9-690abb61975f] Performed Pulitzer::CloneVersionJob from Inline(default) in 29.25ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:10:29.329038"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.2ms) Pulitzer::PostTag Load (0.2ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (6.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (7.6ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (4.2ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (34.8ms) Completed 200 OK in 40ms (Views: 0.4ms | ActiveRecord: 1.1ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:29.375785"], ["updated_at", "2016-12-07 20:10:29.375785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 20:10:29.378576"], ["updated_at", "2016-12-07 20:10:29.378576"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.380146"], ["updated_at", "2016-12-07 20:10:29.380146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.381651"], ["updated_at", "2016-12-07 20:10:29.381651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 20:10:29.383988"], ["updated_at", "2016-12-07 20:10:29.383988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.385378"], ["updated_at", "2016-12-07 20:10:29.385378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 20:10:29.388020"], ["updated_at", "2016-12-07 20:10:29.388020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.389594"], ["updated_at", "2016-12-07 20:10:29.389594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 20:10:29.392771"], ["updated_at", "2016-12-07 20:10:29.392771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.394114"], ["updated_at", "2016-12-07 20:10:29.394114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:10:29.397453"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:10:29.399751"], ["updated_at", "2016-12-07 20:10:29.399751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 9c2fc2e7-1886-4efc-8e8d-d8c3b5307499) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:10:29.385378"], ["updated_at", "2016-12-07 20:10:29.385378"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:29.407567"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:10:29.389594"], ["updated_at", "2016-12-07 20:10:29.389594"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:29.413390"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:10:29.394114"], ["updated_at", "2016-12-07 20:10:29.394114"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:29.417499"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:10:29.419920"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9c2fc2e7-1886-4efc-8e8d-d8c3b5307499] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.44ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:10:29.432223"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:10:29.434820"], ["updated_at", "2016-12-07 20:10:29.434820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 24f9c0a9-8e03-4d16-84e7-2251e5d41401) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:10:29.385378"], ["updated_at", "2016-12-07 20:10:29.385378"]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:10:29.444023"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:10:29.389594"], ["updated_at", "2016-12-07 20:10:29.389594"]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:10:29.447998"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:10:29.394114"], ["updated_at", "2016-12-07 20:10:29.394114"]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:10:29.451867"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:10:29.454160"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [24f9c0a9-8e03-4d16-84e7-2251e5d41401] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.37ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (6.6ms) Completed 200 OK in 35ms (Views: 0.2ms | ActiveRecord: 2.0ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-12-07 20:10:29.476701"], ["updated_at", "2016-12-07 20:10:29.476701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:10:29.480343"], ["updated_at", "2016-12-07 20:10:29.480343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-12-07 20:10:29.494296"], ["updated_at", "2016-12-07 20:10:29.494296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:10:29.496498"], ["updated_at", "2016-12-07 20:10:29.496498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-12-07 20:10:29.507300"], ["updated_at", "2016-12-07 20:10:29.507300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:10:29.510323"], ["updated_at", "2016-12-07 20:10:29.510323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-12-07 20:10:29.519945"], ["updated_at", "2016-12-07 20:10:29.519945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-12-07 20:10:29.534047"], ["updated_at", "2016-12-07 20:10:29.534047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-12-07 20:10:29.577197"], ["updated_at", "2016-12-07 20:10:29.577197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-12-07 20:10:29.587959"], ["updated_at", "2016-12-07 20:10:29.587959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.6ms) Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.5ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:10:29.601099"], ["updated_at", "2016-12-07 20:10:29.601099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:10:29.618478"], ["updated_at", "2016-12-07 20:10:29.618478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 409 Conflict in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-12-07 20:10:29.643387"], ["updated_at", "2016-12-07 20:10:29.643387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-12-07 20:10:29.655367"], ["updated_at", "2016-12-07 20:10:29.655367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-12-07 20:10:29.674506"], ["updated_at", "2016-12-07 20:10:29.674506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-12-07 20:10:29.685217"], ["updated_at", "2016-12-07 20:10:29.685217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-12-07 20:10:29.692970"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:10:29.698396"], ["updated_at", "2016-12-07 20:10:29.698396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-12-07 20:10:29.701973"], ["updated_at", "2016-12-07 20:10:29.701973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:10:29.714937"], ["updated_at", "2016-12-07 20:10:29.714937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-12-07 20:10:29.717980"], ["updated_at", "2016-12-07 20:10:29.717980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 409 Conflict in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-12-07 20:10:29.730812"], ["updated_at", "2016-12-07 20:10:29.730812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-12-07 20:10:29.743462"], ["updated_at", "2016-12-07 20:10:29.743462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:29.757051"], ["updated_at", "2016-12-07 20:10:29.757051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 20:10:29.759753"], ["updated_at", "2016-12-07 20:10:29.759753"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.761757"], ["updated_at", "2016-12-07 20:10:29.761757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.763620"], ["updated_at", "2016-12-07 20:10:29.763620"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-07 20:10:29.766573"], ["updated_at", "2016-12-07 20:10:29.766573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.768267"], ["updated_at", "2016-12-07 20:10:29.768267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-07 20:10:29.771074"], ["updated_at", "2016-12-07 20:10:29.771074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.773055"], ["updated_at", "2016-12-07 20:10:29.773055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-07 20:10:29.776999"], ["updated_at", "2016-12-07 20:10:29.776999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.778444"], ["updated_at", "2016-12-07 20:10:29.778444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:10:29.781336"], ["updated_at", "2016-12-07 20:10:29.781336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:10:29.768267"], ["updated_at", "2016-12-07 20:10:29.768267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:29.786876"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:10:29.773055"], ["updated_at", "2016-12-07 20:10:29.773055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:29.793440"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:10:29.778444"], ["updated_at", "2016-12-07 20:10:29.778444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:29.797910"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:10:29.800091"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:29.809269"], ["updated_at", "2016-12-07 20:10:29.809269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-12-07 20:10:29.811790"], ["updated_at", "2016-12-07 20:10:29.811790"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.813414"], ["updated_at", "2016-12-07 20:10:29.813414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.814829"], ["updated_at", "2016-12-07 20:10:29.814829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:10:29.820387"], ["updated_at", "2016-12-07 20:10:29.820387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:10:29.831603"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:29.839967"], ["updated_at", "2016-12-07 20:10:29.839967"]]  (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 1 [["slug", "winterfell-news-6"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-12-07 20:10:29.843082"], ["updated_at", "2016-12-07 20:10:29.843082"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.845320"], ["updated_at", "2016-12-07 20:10:29.845320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.847082"], ["updated_at", "2016-12-07 20:10:29.847082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-12-07 20:10:29.850033"], ["updated_at", "2016-12-07 20:10:29.850033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.851618"], ["updated_at", "2016-12-07 20:10:29.851618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-12-07 20:10:29.854193"], ["updated_at", "2016-12-07 20:10:29.854193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.857160"], ["updated_at", "2016-12-07 20:10:29.857160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-12-07 20:10:29.861218"], ["updated_at", "2016-12-07 20:10:29.861218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:10:29.862634"], ["updated_at", "2016-12-07 20:10:29.862634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:10:29.864748"], ["updated_at", "2016-12-07 20:10:29.864748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:10:29.851618"], ["updated_at", "2016-12-07 20:10:29.851618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:29.870828"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:10:29.857160"], ["updated_at", "2016-12-07 20:10:29.857160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:29.875558"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:10:29.862634"], ["updated_at", "2016-12-07 20:10:29.862634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:29.879646"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:10:29.882048"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:29.892085"], ["updated_at", "2016-12-07 20:10:29.892085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-12-07 20:10:29.898633"], ["updated_at", "2016-12-07 20:10:29.898633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:10:29.900292"], ["updated_at", "2016-12-07 20:10:29.900292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-12-07 20:10:29.902602"], ["updated_at", "2016-12-07 20:10:29.902602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:10:29.903988"], ["updated_at", "2016-12-07 20:10:29.903988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-12-07 20:10:29.906443"], ["updated_at", "2016-12-07 20:10:29.906443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:10:29.907870"], ["updated_at", "2016-12-07 20:10:29.907870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:10:29.920220"], ["updated_at", "2016-12-07 20:10:29.920220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:10:29.924270"], ["updated_at", "2016-12-07 20:10:29.924270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:10:29.928950"], ["updated_at", "2016-12-07 20:10:29.928950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:29.933518"], ["updated_at", "2016-12-07 20:10:29.933518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-12-07 20:10:29.936210"], ["updated_at", "2016-12-07 20:10:29.936210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:10:29.937732"], ["updated_at", "2016-12-07 20:10:29.937732"]]  (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" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-12-07 20:10:29.942301"], ["updated_at", "2016-12-07 20:10:29.942301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:10:29.943818"], ["updated_at", "2016-12-07 20:10:29.943818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-12-07 20:10:29.946004"], ["updated_at", "2016-12-07 20:10:29.946004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:10:29.947249"], ["updated_at", "2016-12-07 20:10:29.947249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-12-07 20:10:29.950852"], ["updated_at", "2016-12-07 20:10:29.950852"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.952336"], ["updated_at", "2016-12-07 20:10:29.952336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:10:29.959231"], ["updated_at", "2016-12-07 20:10:29.959231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:10:29.964247"], ["updated_at", "2016-12-07 20:10:29.964247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:10:29.970395"], ["updated_at", "2016-12-07 20:10:29.970395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:29.979425"], ["updated_at", "2016-12-07 20:10:29.979425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-12-07 20:10:29.986461"], ["updated_at", "2016-12-07 20:10:29.986461"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:29.988186"], ["updated_at", "2016-12-07 20:10:29.988186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:30.004575"], ["updated_at", "2016-12-07 20:10:30.004575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-12-07 20:10:30.008039"], ["updated_at", "2016-12-07 20:10:30.008039"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.009689"], ["updated_at", "2016-12-07 20:10:30.009689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.011804"], ["updated_at", "2016-12-07 20:10:30.011804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-12-07 20:10:30.015836"], ["updated_at", "2016-12-07 20:10:30.015836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.017501"], ["updated_at", "2016-12-07 20:10:30.017501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-12-07 20:10:30.020029"], ["updated_at", "2016-12-07 20:10:30.020029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.021437"], ["updated_at", "2016-12-07 20:10:30.021437"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-12-07 20:10:30.026223"], ["updated_at", "2016-12-07 20:10:30.026223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.027974"], ["updated_at", "2016-12-07 20:10:30.027974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:10:30.030314"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:10:30.033019"], ["updated_at", "2016-12-07 20:10:30.033019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6867958d-b2f3-4fe5-800e-d24f0e019d5c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:10:30.017501"], ["updated_at", "2016-12-07 20:10:30.017501"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:30.041134"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:10:30.021437"], ["updated_at", "2016-12-07 20:10:30.021437"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:30.046154"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:10:30.027974"], ["updated_at", "2016-12-07 20:10:30.027974"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:30.050749"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:10:30.052982"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6867958d-b2f3-4fe5-800e-d24f0e019d5c] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.33ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:30.069023"], ["updated_at", "2016-12-07 20:10:30.069023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-12-07 20:10:30.072043"], ["updated_at", "2016-12-07 20:10:30.072043"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.073760"], ["updated_at", "2016-12-07 20:10:30.073760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.075540"], ["updated_at", "2016-12-07 20:10:30.075540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-12-07 20:10:30.077805"], ["updated_at", "2016-12-07 20:10:30.077805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.079238"], ["updated_at", "2016-12-07 20:10:30.079238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-12-07 20:10:30.081536"], ["updated_at", "2016-12-07 20:10:30.081536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.082814"], ["updated_at", "2016-12-07 20:10:30.082814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-12-07 20:10:30.095061"], ["updated_at", "2016-12-07 20:10:30.095061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.096429"], ["updated_at", "2016-12-07 20:10:30.096429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:10:30.098500"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:10:30.100675"], ["updated_at", "2016-12-07 20:10:30.100675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: e0a5f54c-2073-4e47-a697-837b007d7144) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] 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]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:10:30.079238"], ["updated_at", "2016-12-07 20:10:30.079238"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:30.112770"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:10:30.082814"], ["updated_at", "2016-12-07 20:10:30.082814"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:30.117363"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:10:30.096429"], ["updated_at", "2016-12-07 20:10:30.096429"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:30.123386"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:10:30.125950"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e0a5f54c-2073-4e47-a697-837b007d7144] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.31ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:10:30.133444"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:10:30.136309"], ["updated_at", "2016-12-07 20:10:30.136309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b0accd11-b695-4cd1-92b0-954287d46f3d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:10:30.079238"], ["updated_at", "2016-12-07 20:10:30.079238"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:10:30.145016"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:10:30.082814"], ["updated_at", "2016-12-07 20:10:30.082814"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:10:30.149119"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:10:30.096429"], ["updated_at", "2016-12-07 20:10:30.096429"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:10:30.153361"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:10:30.155791"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b0accd11-b695-4cd1-92b0-954287d46f3d] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.86ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:30.171286"], ["updated_at", "2016-12-07 20:10:30.171286"]]  (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 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-12-07 20:10:30.175896"], ["updated_at", "2016-12-07 20:10:30.175896"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.178001"], ["updated_at", "2016-12-07 20:10:30.178001"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.180164"], ["updated_at", "2016-12-07 20:10:30.180164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-12-07 20:10:30.182684"], ["updated_at", "2016-12-07 20:10:30.182684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.184183"], ["updated_at", "2016-12-07 20:10:30.184183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-12-07 20:10:30.187323"], ["updated_at", "2016-12-07 20:10:30.187323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.188742"], ["updated_at", "2016-12-07 20:10:30.188742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-12-07 20:10:30.193792"], ["updated_at", "2016-12-07 20:10:30.193792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.196326"], ["updated_at", "2016-12-07 20:10:30.196326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:10:30.198793"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:10:30.201265"], ["updated_at", "2016-12-07 20:10:30.201265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: d556cc8a-53a5-4067-b808-d179a1519cad) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:10:30.184183"], ["updated_at", "2016-12-07 20:10:30.184183"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:30.214622"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:10:30.188742"], ["updated_at", "2016-12-07 20:10:30.188742"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:30.219326"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:10:30.196326"], ["updated_at", "2016-12-07 20:10:30.196326"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] SQL (0.4ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:30.231095"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:10:30.236707"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d556cc8a-53a5-4067-b808-d179a1519cad] Performed Pulitzer::CloneVersionJob from Inline(default) in 40.75ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:10:30.247420"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-12-07 20:10:30.260880"], ["updated_at", "2016-12-07 20:10:30.260880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:30.265418"], ["updated_at", "2016-12-07 20:10:30.265418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-12-07 20:10:30.267902"], ["updated_at", "2016-12-07 20:10:30.267902"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.269404"], ["updated_at", "2016-12-07 20:10:30.269404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.270748"], ["updated_at", "2016-12-07 20:10:30.270748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-12-07 20:10:30.275432"], ["updated_at", "2016-12-07 20:10:30.275432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.277559"], ["updated_at", "2016-12-07 20:10:30.277559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 32' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 32"], ["created_at", "2016-12-07 20:10:30.280864"], ["updated_at", "2016-12-07 20:10:30.280864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.282422"], ["updated_at", "2016-12-07 20:10:30.282422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 33' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 33"], ["created_at", "2016-12-07 20:10:30.284812"], ["updated_at", "2016-12-07 20:10:30.284812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.286604"], ["updated_at", "2016-12-07 20:10:30.286604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.294786"], ["updated_at", "2016-12-07 20:10:30.294786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-12-07 20:10:30.298308"], ["updated_at", "2016-12-07 20:10:30.298308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.301072"], ["updated_at", "2016-12-07 20:10:30.301072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:10:30.304405"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:10:30.306966"], ["updated_at", "2016-12-07 20:10:30.306966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 09d9459b-e797-4666-bc73-632c84d570e0) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:10:30.277559"], ["updated_at", "2016-12-07 20:10:30.277559"]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:30.315811"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:10:30.282422"], ["updated_at", "2016-12-07 20:10:30.282422"]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:30.320140"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:10:30.286604"], ["updated_at", "2016-12-07 20:10:30.286604"]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:10:30.324469"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:10:30.327179"], ["updated_at", "2016-12-07 20:10:30.327179"]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:10:30.329640"], ["updated_at", "2016-12-07 20:10:30.329640"]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:10:30.331893"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [09d9459b-e797-4666-bc73-632c84d570e0] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.13ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 34' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 34"], ["created_at", "2016-12-07 20:10:30.344430"], ["updated_at", "2016-12-07 20:10:30.344430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 35"], ["created_at", "2016-12-07 20:10:30.355197"], ["updated_at", "2016-12-07 20:10:30.355197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 36' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 36"], ["created_at", "2016-12-07 20:10:30.360010"], ["updated_at", "2016-12-07 20:10:30.360010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 37' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 37"], ["created_at", "2016-12-07 20:10:30.365207"], ["updated_at", "2016-12-07 20:10:30.365207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:10:30.370237"], ["updated_at", "2016-12-07 20:10:30.370237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 32"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:10:30.371756"], ["updated_at", "2016-12-07 20:10:30.371756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:10:30.378670"], ["updated_at", "2016-12-07 20:10:30.378670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 33"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:10:30.380368"], ["updated_at", "2016-12-07 20:10:30.380368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 38"], ["created_at", "2016-12-07 20:10:30.384563"], ["updated_at", "2016-12-07 20:10:30.384563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 39' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 39"], ["created_at", "2016-12-07 20:10:30.389540"], ["updated_at", "2016-12-07 20:10:30.389540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-07 20:10:30.396474"], ["updated_at", "2016-12-07 20:10:30.396474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:30.535703"], ["updated_at", "2016-12-07 20:10:30.535703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:30.557258"], ["updated_at", "2016-12-07 20:10:30.557258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-12-07 20:10:30.559913"], ["updated_at", "2016-12-07 20:10:30.559913"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.561862"], ["updated_at", "2016-12-07 20:10:30.561862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.564322"], ["updated_at", "2016-12-07 20:10:30.564322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:10:30.566107"], ["updated_at", "2016-12-07 20:10:30.566107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:30.572788"], ["updated_at", "2016-12-07 20:10:30.572788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-12-07 20:10:30.579173"], ["updated_at", "2016-12-07 20:10:30.579173"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.581130"], ["updated_at", "2016-12-07 20:10:30.581130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:30.585461"], ["updated_at", "2016-12-07 20:10:30.585461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-12-07 20:10:30.588075"], ["updated_at", "2016-12-07 20:10:30.588075"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.589953"], ["updated_at", "2016-12-07 20:10:30.589953"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-12-07 20:10:30.592387"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-12-07 20:10:30.597528"], ["updated_at", "2016-12-07 20:10:30.597528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:30.600507"], ["updated_at", "2016-12-07 20:10:30.600507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-12-07 20:10:30.603523"], ["updated_at", "2016-12-07 20:10:30.603523"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.606075"], ["updated_at", "2016-12-07 20:10:30.606075"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.609935"], ["updated_at", "2016-12-07 20:10:30.609935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:30.633922"], ["updated_at", "2016-12-07 20:10:30.633922"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 40"], ["created_at", "2016-12-07 20:10:30.638144"], ["updated_at", "2016-12-07 20:10:30.638144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.4ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.5ms) begin transaction  (0.2ms) commit transaction  (0.2ms) begin transaction Pulitzer::Tag Exists (0.6ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-12-07 20:10:30.697139"], ["updated_at", "2016-12-07 20:10:30.697139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (5.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:10:30.717246"], ["updated_at", "2016-12-07 20:10:30.717246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-12-07 20:10:30.719994"], ["updated_at", "2016-12-07 20:10:30.719994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.4ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.3ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:30.731373"], ["updated_at", "2016-12-07 20:10:30.731373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-17"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 17"], ["post_type_id", 1], ["slug", "winterfell-news-17"], ["created_at", "2016-12-07 20:10:30.734384"], ["updated_at", "2016-12-07 20:10:30.734384"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.736351"], ["updated_at", "2016-12-07 20:10:30.736351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:10:30.746402"], ["updated_at", "2016-12-07 20:10:30.746402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-12-07 20:10:30.749505"], ["updated_at", "2016-12-07 20:10:30.749505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.752124"], ["updated_at", "2016-12-07 20:10:30.752124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:10:30.761852"], ["updated_at", "2016-12-07 20:10:30.761852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-12-07 20:10:30.764519"], ["updated_at", "2016-12-07 20:10:30.764519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-12-07 20:10:30.769850"], ["updated_at", "2016-12-07 20:10:30.769850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-12-07 20:10:30.772936"], ["updated_at", "2016-12-07 20:10:30.772936"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:10:30.773979' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-12-07 20:10:30.776369"], ["updated_at", "2016-12-07 20:10:30.776369"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:10:30.777137' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:10:30.784014"], ["updated_at", "2016-12-07 20:10:30.784014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-12-07 20:10:30.786593"], ["updated_at", "2016-12-07 20:10:30.786593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:10:30.789157"], ["updated_at", "2016-12-07 20:10:30.789157"]] SQL (0.2ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:10:30.790091' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:10:30.795405"], ["updated_at", "2016-12-07 20:10:30.795405"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-12-07 20:10:30.798858"], ["updated_at", "2016-12-07 20:10:30.798858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:10:30.801144"], ["updated_at", "2016-12-07 20:10:30.801144"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:10:30.802009' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:10:30.808167"], ["updated_at", "2016-12-07 20:10:30.808167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-12-07 20:10:30.810873"], ["updated_at", "2016-12-07 20:10:30.810873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:10:30.813102"], ["updated_at", "2016-12-07 20:10:30.813102"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:10:30.813993' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:30.818999"], ["updated_at", "2016-12-07 20:10:30.818999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-18"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 18"], ["post_type_id", 1], ["slug", "winterfell-news-18"], ["created_at", "2016-12-07 20:10:30.822249"], ["updated_at", "2016-12-07 20:10:30.822249"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.824301"], ["updated_at", "2016-12-07 20:10:30.824301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-12-07 20:10:30.844475"], ["updated_at", "2016-12-07 20:10:30.844475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:10:30.847286"], ["updated_at", "2016-12-07 20:10:30.847286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-19"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 19"], ["post_type_id", 1], ["slug", "winterfell-news-19"], ["created_at", "2016-12-07 20:10:30.850272"], ["updated_at", "2016-12-07 20:10:30.850272"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.852100"], ["updated_at", "2016-12-07 20:10:30.852100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:10:30.853703"], ["updated_at", "2016-12-07 20:10:30.853703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:10:30.855799"], ["updated_at", "2016-12-07 20:10:30.855799"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.7ms) 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';  (0.7ms) 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.7ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (0.6ms) 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';  (1.1ms) DELETE FROM "pulitzer_layouts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) 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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:11:34.602768"], ["updated_at", "2016-12-07 20:11:34.602768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (20.0ms) Completed 200 OK in 48ms (Views: 28.1ms | ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:11:34.665964"], ["updated_at", "2016-12-07 20:11:34.665964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (6.8ms) Completed 200 OK in 15ms (Views: 8.7ms | ActiveRecord: 0.6ms) Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:11:34.690616"], ["updated_at", "2016-12-07 20:11:34.690616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (10.4ms) Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:11:34.714096"], ["updated_at", "2016-12-07 20:11:34.714096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.5ms) Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:11:34.733929"], ["updated_at", "2016-12-07 20:11:34.733929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:11:34.750785"], ["updated_at", "2016-12-07 20:11:34.750785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (13.1ms) Completed 200 OK in 27ms (Views: 17.9ms | ActiveRecord: 0.7ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:11:34.795016"], ["updated_at", "2016-12-07 20:11:34.795016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (10.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (12.3ms) Completed 200 OK in 25ms (Views: 14.2ms | ActiveRecord: 1.1ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:11:34.832552"], ["updated_at", "2016-12-07 20:11:34.832552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (11.8ms) Completed 200 OK in 16ms (Views: 13.5ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:11:34.859449"], ["updated_at", "2016-12-07 20:11:34.859449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:11:34.862820"], ["updated_at", "2016-12-07 20:11:34.862820"]]  (12.5ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.6ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.4ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["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.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:34.902520"], ["updated_at", "2016-12-07 20:11:34.902520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 20:11:34.996259"], ["updated_at", "2016-12-07 20:11:34.996259"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:34.998820"], ["updated_at", "2016-12-07 20:11:34.998820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.001400"], ["updated_at", "2016-12-07 20:11:35.001400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 20:11:35.013487"], ["updated_at", "2016-12-07 20:11:35.013487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.015782"], ["updated_at", "2016-12-07 20:11:35.015782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 20:11:35.018519"], ["updated_at", "2016-12-07 20:11:35.018519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.019948"], ["updated_at", "2016-12-07 20:11:35.019948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 20:11:35.022876"], ["updated_at", "2016-12-07 20:11:35.022876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.024651"], ["updated_at", "2016-12-07 20:11:35.024651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:11:35.036335"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (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", 2]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (1.1ms) Completed 200 OK in 24ms (Views: 0.2ms | ActiveRecord: 1.3ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:35.086135"], ["updated_at", "2016-12-07 20:11:35.086135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 20:11:35.091243"], ["updated_at", "2016-12-07 20:11:35.091243"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.092751"], ["updated_at", "2016-12-07 20:11:35.092751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.094571"], ["updated_at", "2016-12-07 20:11:35.094571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 20:11:35.097855"], ["updated_at", "2016-12-07 20:11:35.097855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.100393"], ["updated_at", "2016-12-07 20:11:35.100393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 20:11:35.104338"], ["updated_at", "2016-12-07 20:11:35.104338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.106162"], ["updated_at", "2016-12-07 20:11:35.106162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 20:11:35.109649"], ["updated_at", "2016-12-07 20:11:35.109649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.111437"], ["updated_at", "2016-12-07 20:11:35.111437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:11:35.119658"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:11:35.122105"], ["updated_at", "2016-12-07 20:11:35.122105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 46441a78-bdc4-443d-9f59-193dc206baef) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:11:35.100393"], ["updated_at", "2016-12-07 20:11:35.100393"]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.143253"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:11:35.106162"], ["updated_at", "2016-12-07 20:11:35.106162"]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.147383"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:11:35.111437"], ["updated_at", "2016-12-07 20:11:35.111437"]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.151445"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:11:35.153960"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [46441a78-bdc4-443d-9f59-193dc206baef] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.51ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:11:35.165082"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.3ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.0ms) Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.4ms) Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (30.4ms) Completed 200 OK in 36ms (Views: 0.4ms | ActiveRecord: 1.1ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:35.207193"], ["updated_at", "2016-12-07 20:11:35.207193"]]  (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 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 20:11:35.210040"], ["updated_at", "2016-12-07 20:11:35.210040"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.211834"], ["updated_at", "2016-12-07 20:11:35.211834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.213423"], ["updated_at", "2016-12-07 20:11:35.213423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 20:11:35.215929"], ["updated_at", "2016-12-07 20:11:35.215929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.217308"], ["updated_at", "2016-12-07 20:11:35.217308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 20:11:35.220276"], ["updated_at", "2016-12-07 20:11:35.220276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.221797"], ["updated_at", "2016-12-07 20:11:35.221797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 20:11:35.224687"], ["updated_at", "2016-12-07 20:11:35.224687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.226439"], ["updated_at", "2016-12-07 20:11:35.226439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:11:35.230104"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:11:35.232377"], ["updated_at", "2016-12-07 20:11:35.232377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: fe4296ba-38fd-4e3c-aefe-97689d92ed7b) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:11:35.217308"], ["updated_at", "2016-12-07 20:11:35.217308"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.240442"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:11:35.221797"], ["updated_at", "2016-12-07 20:11:35.221797"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.246416"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:11:35.226439"], ["updated_at", "2016-12-07 20:11:35.226439"]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.251139"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:11:35.253631"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [fe4296ba-38fd-4e3c-aefe-97689d92ed7b] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.12ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:11:35.265657"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:11:35.268249"], ["updated_at", "2016-12-07 20:11:35.268249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6a4c1613-087a-49db-bf56-cf223939e717) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:11:35.217308"], ["updated_at", "2016-12-07 20:11:35.217308"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:11:35.275751"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:11:35.221797"], ["updated_at", "2016-12-07 20:11:35.221797"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:11:35.279673"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:11:35.226439"], ["updated_at", "2016-12-07 20:11:35.226439"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:11:35.284106"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:11:35.286442"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6a4c1613-087a-49db-bf56-cf223939e717] Performed Pulitzer::CloneVersionJob from Inline(default) in 19.47ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (6.2ms) Completed 200 OK in 33ms (Views: 0.3ms | ActiveRecord: 2.0ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-12-07 20:11:35.308295"], ["updated_at", "2016-12-07 20:11:35.308295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:11:35.311875"], ["updated_at", "2016-12-07 20:11:35.311875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-12-07 20:11:35.326335"], ["updated_at", "2016-12-07 20:11:35.326335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:11:35.328706"], ["updated_at", "2016-12-07 20:11:35.328706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-12-07 20:11:35.338937"], ["updated_at", "2016-12-07 20:11:35.338937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:11:35.342223"], ["updated_at", "2016-12-07 20:11:35.342223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-12-07 20:11:35.352104"], ["updated_at", "2016-12-07 20:11:35.352104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-12-07 20:11:35.364552"], ["updated_at", "2016-12-07 20:11:35.364552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.4ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-12-07 20:11:35.409965"], ["updated_at", "2016-12-07 20:11:35.409965"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.5ms) Completed 200 OK in 9ms (Views: 3.8ms | ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-12-07 20:11:35.426706"], ["updated_at", "2016-12-07 20:11:35.426706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:11:35.431783"], ["updated_at", "2016-12-07 20:11:35.431783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 409 Conflict in 7ms (Views: 2.6ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:11:35.448486"], ["updated_at", "2016-12-07 20:11:35.448486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-12-07 20:11:35.475146"], ["updated_at", "2016-12-07 20:11:35.475146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.4ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-12-07 20:11:35.487440"], ["updated_at", "2016-12-07 20:11:35.487440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-12-07 20:11:35.505948"], ["updated_at", "2016-12-07 20:11:35.505948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-12-07 20:11:35.517289"], ["updated_at", "2016-12-07 20:11:35.517289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-12-07 20:11:35.526840"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.3ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:11:35.532400"], ["updated_at", "2016-12-07 20:11:35.532400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-12-07 20:11:35.535725"], ["updated_at", "2016-12-07 20:11:35.535725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:11:35.546526"], ["updated_at", "2016-12-07 20:11:35.546526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-12-07 20:11:35.549667"], ["updated_at", "2016-12-07 20:11:35.549667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-12-07 20:11:35.561872"], ["updated_at", "2016-12-07 20:11:35.561872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-12-07 20:11:35.574865"], ["updated_at", "2016-12-07 20:11:35.574865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.2ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.5ms)  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:35.590029"], ["updated_at", "2016-12-07 20:11:35.590029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 20:11:35.593143"], ["updated_at", "2016-12-07 20:11:35.593143"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.594713"], ["updated_at", "2016-12-07 20:11:35.594713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.596081"], ["updated_at", "2016-12-07 20:11:35.596081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-07 20:11:35.598689"], ["updated_at", "2016-12-07 20:11:35.598689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.600190"], ["updated_at", "2016-12-07 20:11:35.600190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-07 20:11:35.602760"], ["updated_at", "2016-12-07 20:11:35.602760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.604097"], ["updated_at", "2016-12-07 20:11:35.604097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-07 20:11:35.607016"], ["updated_at", "2016-12-07 20:11:35.607016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.609443"], ["updated_at", "2016-12-07 20:11:35.609443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:11:35.612707"], ["updated_at", "2016-12-07 20:11:35.612707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:11:35.600190"], ["updated_at", "2016-12-07 20:11:35.600190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.618440"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:11:35.604097"], ["updated_at", "2016-12-07 20:11:35.604097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.622429"], ["id", 5]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:11:35.609443"], ["updated_at", "2016-12-07 20:11:35.609443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.628887"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:11:35.631032"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:35.639520"], ["updated_at", "2016-12-07 20:11:35.639520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-12-07 20:11:35.642559"], ["updated_at", "2016-12-07 20:11:35.642559"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.644180"], ["updated_at", "2016-12-07 20:11:35.644180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.645532"], ["updated_at", "2016-12-07 20:11:35.645532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:11:35.651960"], ["updated_at", "2016-12-07 20:11:35.651960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:11:35.664261"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:35.672417"], ["updated_at", "2016-12-07 20:11:35.672417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-12-07 20:11:35.676016"], ["updated_at", "2016-12-07 20:11:35.676016"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.677592"], ["updated_at", "2016-12-07 20:11:35.677592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.679120"], ["updated_at", "2016-12-07 20:11:35.679120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-12-07 20:11:35.681594"], ["updated_at", "2016-12-07 20:11:35.681594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.683025"], ["updated_at", "2016-12-07 20:11:35.683025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-12-07 20:11:35.685344"], ["updated_at", "2016-12-07 20:11:35.685344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.687252"], ["updated_at", "2016-12-07 20:11:35.687252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-12-07 20:11:35.690269"], ["updated_at", "2016-12-07 20:11:35.690269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.693887"], ["updated_at", "2016-12-07 20:11:35.693887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:11:35.695974"], ["updated_at", "2016-12-07 20:11:35.695974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:11:35.683025"], ["updated_at", "2016-12-07 20:11:35.683025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.701862"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:11:35.687252"], ["updated_at", "2016-12-07 20:11:35.687252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.705699"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:11:35.693887"], ["updated_at", "2016-12-07 20:11:35.693887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.711695"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:11:35.714251"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:35.725283"], ["updated_at", "2016-12-07 20:11:35.725283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-12-07 20:11:35.733301"], ["updated_at", "2016-12-07 20:11:35.733301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:11:35.734942"], ["updated_at", "2016-12-07 20:11:35.734942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-12-07 20:11:35.737297"], ["updated_at", "2016-12-07 20:11:35.737297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:11:35.738534"], ["updated_at", "2016-12-07 20:11:35.738534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-12-07 20:11:35.740786"], ["updated_at", "2016-12-07 20:11:35.740786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:11:35.742133"], ["updated_at", "2016-12-07 20:11:35.742133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:11:35.752760"], ["updated_at", "2016-12-07 20:11:35.752760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:11:35.755733"], ["updated_at", "2016-12-07 20:11:35.755733"]]  (0.0ms) RELEASE SAVEPOINT active_record_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 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:11:35.760046"], ["updated_at", "2016-12-07 20:11:35.760046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:35.765695"], ["updated_at", "2016-12-07 20:11:35.765695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-12-07 20:11:35.768427"], ["updated_at", "2016-12-07 20:11:35.768427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:11:35.769787"], ["updated_at", "2016-12-07 20:11:35.769787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-12-07 20:11:35.771975"], ["updated_at", "2016-12-07 20:11:35.771975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:11:35.774060"], ["updated_at", "2016-12-07 20:11:35.774060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-12-07 20:11:35.777640"], ["updated_at", "2016-12-07 20:11:35.777640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:11:35.778939"], ["updated_at", "2016-12-07 20:11:35.778939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-12-07 20:11:35.782530"], ["updated_at", "2016-12-07 20:11:35.782530"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.784083"], ["updated_at", "2016-12-07 20:11:35.784083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:11:35.790035"], ["updated_at", "2016-12-07 20:11:35.790035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:11:35.794175"], ["updated_at", "2016-12-07 20:11:35.794175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:11:35.798053"], ["updated_at", "2016-12-07 20:11:35.798053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:35.806708"], ["updated_at", "2016-12-07 20:11:35.806708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-12-07 20:11:35.815158"], ["updated_at", "2016-12-07 20:11:35.815158"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.816797"], ["updated_at", "2016-12-07 20:11:35.816797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:35.832168"], ["updated_at", "2016-12-07 20:11:35.832168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-12-07 20:11:35.834655"], ["updated_at", "2016-12-07 20:11:35.834655"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.836179"], ["updated_at", "2016-12-07 20:11:35.836179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.837607"], ["updated_at", "2016-12-07 20:11:35.837607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-12-07 20:11:35.840872"], ["updated_at", "2016-12-07 20:11:35.840872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.843456"], ["updated_at", "2016-12-07 20:11:35.843456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-12-07 20:11:35.846639"], ["updated_at", "2016-12-07 20:11:35.846639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.848185"], ["updated_at", "2016-12-07 20:11:35.848185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-12-07 20:11:35.852066"], ["updated_at", "2016-12-07 20:11:35.852066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.854219"], ["updated_at", "2016-12-07 20:11:35.854219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:11:35.856822"], ["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:11:35.861806"], ["updated_at", "2016-12-07 20:11:35.861806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:11:35.843456"], ["updated_at", "2016-12-07 20:11:35.843456"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.870695"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:11:35.848185"], ["updated_at", "2016-12-07 20:11:35.848185"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.875069"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:11:35.854219"], ["updated_at", "2016-12-07 20:11:35.854219"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.879219"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:11:35.881458"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f3b3fc0-1970-4b5f-b52f-ea9ab6e6bc5f] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.77ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:35.895476"], ["updated_at", "2016-12-07 20:11:35.895476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-12-07 20:11:35.898129"], ["updated_at", "2016-12-07 20:11:35.898129"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.899746"], ["updated_at", "2016-12-07 20:11:35.899746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:35.901138"], ["updated_at", "2016-12-07 20:11:35.901138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-12-07 20:11:35.904046"], ["updated_at", "2016-12-07 20:11:35.904046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.905511"], ["updated_at", "2016-12-07 20:11:35.905511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-12-07 20:11:35.908408"], ["updated_at", "2016-12-07 20:11:35.908408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.910075"], ["updated_at", "2016-12-07 20:11:35.910075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-12-07 20:11:35.923409"], ["updated_at", "2016-12-07 20:11:35.923409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:11:35.925763"], ["updated_at", "2016-12-07 20:11:35.925763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:11:35.929588"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:11:35.933296"], ["updated_at", "2016-12-07 20:11:35.933296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 77c86744-864c-4a7e-b9fc-4c9580773128) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:11:35.905511"], ["updated_at", "2016-12-07 20:11:35.905511"]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.943479"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:11:35.910075"], ["updated_at", "2016-12-07 20:11:35.910075"]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.947962"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:11:35.925763"], ["updated_at", "2016-12-07 20:11:35.925763"]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:35.952097"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:11:35.954249"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [77c86744-864c-4a7e-b9fc-4c9580773128] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.08ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:11:35.961111"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:11:35.963694"], ["updated_at", "2016-12-07 20:11:35.963694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b1931922-ce5e-4998-af3c-b79ad9608f74) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:11:35.905511"], ["updated_at", "2016-12-07 20:11:35.905511"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:11:35.973061"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:11:35.910075"], ["updated_at", "2016-12-07 20:11:35.910075"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:11:35.978201"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:11:35.925763"], ["updated_at", "2016-12-07 20:11:35.925763"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:11:35.982244"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:11:35.984306"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b1931922-ce5e-4998-af3c-b79ad9608f74] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.7ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:35.997202"], ["updated_at", "2016-12-07 20:11:35.997202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-12-07 20:11:35.999744"], ["updated_at", "2016-12-07 20:11:35.999744"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.001385"], ["updated_at", "2016-12-07 20:11:36.001385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.003536"], ["updated_at", "2016-12-07 20:11:36.003536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-12-07 20:11:36.006172"], ["updated_at", "2016-12-07 20:11:36.006172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:11:36.008064"], ["updated_at", "2016-12-07 20:11:36.008064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-12-07 20:11:36.010798"], ["updated_at", "2016-12-07 20:11:36.010798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:11:36.012281"], ["updated_at", "2016-12-07 20:11:36.012281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-12-07 20:11:36.014632"], ["updated_at", "2016-12-07 20:11:36.014632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:11:36.015933"], ["updated_at", "2016-12-07 20:11:36.015933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:11:36.018086"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:11:36.020500"], ["updated_at", "2016-12-07 20:11:36.020500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ddfe34e2-f9c6-4e31-853f-3c72cccf8a04) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:11:36.008064"], ["updated_at", "2016-12-07 20:11:36.008064"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:36.029433"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:11:36.012281"], ["updated_at", "2016-12-07 20:11:36.012281"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:36.035345"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:11:36.015933"], ["updated_at", "2016-12-07 20:11:36.015933"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:36.039338"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:11:36.043407"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddfe34e2-f9c6-4e31-853f-3c72cccf8a04] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.11ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:11:36.049860"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-12-07 20:11:36.060477"], ["updated_at", "2016-12-07 20:11:36.060477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:36.063011"], ["updated_at", "2016-12-07 20:11:36.063011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-12-07 20:11:36.065063"], ["updated_at", "2016-12-07 20:11:36.065063"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.066568"], ["updated_at", "2016-12-07 20:11:36.066568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.068229"], ["updated_at", "2016-12-07 20:11:36.068229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-12-07 20:11:36.070659"], ["updated_at", "2016-12-07 20:11:36.070659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:11:36.072084"], ["updated_at", "2016-12-07 20:11:36.072084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 32' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 32"], ["created_at", "2016-12-07 20:11:36.075425"], ["updated_at", "2016-12-07 20:11:36.075425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:11:36.076913"], ["updated_at", "2016-12-07 20:11:36.076913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 33' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 33"], ["created_at", "2016-12-07 20:11:36.079244"], ["updated_at", "2016-12-07 20:11:36.079244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:11:36.080530"], ["updated_at", "2016-12-07 20:11:36.080530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:11:36.086366"], ["updated_at", "2016-12-07 20:11:36.086366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-12-07 20:11:36.088866"], ["updated_at", "2016-12-07 20:11:36.088866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:11:36.091051"], ["updated_at", "2016-12-07 20:11:36.091051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:11:36.095988"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:11:36.098317"], ["updated_at", "2016-12-07 20:11:36.098317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:11:36.072084"], ["updated_at", "2016-12-07 20:11:36.072084"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:36.105781"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:11:36.076913"], ["updated_at", "2016-12-07 20:11:36.076913"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:36.111763"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:11:36.080530"], ["updated_at", "2016-12-07 20:11:36.080530"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:11:36.115916"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:11:36.118512"], ["updated_at", "2016-12-07 20:11:36.118512"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:11:36.120699"], ["updated_at", "2016-12-07 20:11:36.120699"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:11:36.123051"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cf35dbc1-eeb5-460b-bcc0-a9994b6a10c7] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.36ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 34' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 34"], ["created_at", "2016-12-07 20:11:36.135231"], ["updated_at", "2016-12-07 20:11:36.135231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 35"], ["created_at", "2016-12-07 20:11:36.145729"], ["updated_at", "2016-12-07 20:11:36.145729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 36' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 36"], ["created_at", "2016-12-07 20:11:36.150853"], ["updated_at", "2016-12-07 20:11:36.150853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 37' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 37"], ["created_at", "2016-12-07 20:11:36.156145"], ["updated_at", "2016-12-07 20:11:36.156145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:11:36.161656"], ["updated_at", "2016-12-07 20:11:36.161656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 32"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:11:36.163254"], ["updated_at", "2016-12-07 20:11:36.163254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:11:36.169147"], ["updated_at", "2016-12-07 20:11:36.169147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 33"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:11:36.171012"], ["updated_at", "2016-12-07 20:11:36.171012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 38"], ["created_at", "2016-12-07 20:11:36.177081"], ["updated_at", "2016-12-07 20:11:36.177081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 39' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 39"], ["created_at", "2016-12-07 20:11:36.181937"], ["updated_at", "2016-12-07 20:11:36.181937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-07 20:11:36.187005"], ["updated_at", "2016-12-07 20:11:36.187005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:36.311903"], ["updated_at", "2016-12-07 20:11:36.311903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:36.336390"], ["updated_at", "2016-12-07 20:11:36.336390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-12-07 20:11:36.339182"], ["updated_at", "2016-12-07 20:11:36.339182"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.341026"], ["updated_at", "2016-12-07 20:11:36.341026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.343013"], ["updated_at", "2016-12-07 20:11:36.343013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:11:36.344571"], ["updated_at", "2016-12-07 20:11:36.344571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:36.350507"], ["updated_at", "2016-12-07 20:11:36.350507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-12-07 20:11:36.353739"], ["updated_at", "2016-12-07 20:11:36.353739"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.355369"], ["updated_at", "2016-12-07 20:11:36.355369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:36.362123"], ["updated_at", "2016-12-07 20:11:36.362123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-12-07 20:11:36.365297"], ["updated_at", "2016-12-07 20:11:36.365297"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.366900"], ["updated_at", "2016-12-07 20:11:36.366900"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-12-07 20:11:36.369188"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-12-07 20:11:36.378088"], ["updated_at", "2016-12-07 20:11:36.378088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:36.381412"], ["updated_at", "2016-12-07 20:11:36.381412"]]  (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 1 [["slug", "winterfell-news-16"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-12-07 20:11:36.384081"], ["updated_at", "2016-12-07 20:11:36.384081"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.385793"], ["updated_at", "2016-12-07 20:11:36.385793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.387366"], ["updated_at", "2016-12-07 20:11:36.387366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:36.411094"], ["updated_at", "2016-12-07 20:11:36.411094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 40"], ["created_at", "2016-12-07 20:11:36.414720"], ["updated_at", "2016-12-07 20:11:36.414720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-12-07 20:11:36.459639"], ["updated_at", "2016-12-07 20:11:36.459639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:11:36.474699"], ["updated_at", "2016-12-07 20:11:36.474699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-12-07 20:11:36.477904"], ["updated_at", "2016-12-07 20:11:36.477904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:36.485791"], ["updated_at", "2016-12-07 20:11:36.485791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-17"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 17"], ["post_type_id", 1], ["slug", "winterfell-news-17"], ["created_at", "2016-12-07 20:11:36.489326"], ["updated_at", "2016-12-07 20:11:36.489326"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.491676"], ["updated_at", "2016-12-07 20:11:36.491676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:11:36.493384"], ["updated_at", "2016-12-07 20:11:36.493384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-12-07 20:11:36.503801"], ["updated_at", "2016-12-07 20:11:36.503801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:11:36.508491"], ["updated_at", "2016-12-07 20:11:36.508491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:11:36.517414"], ["updated_at", "2016-12-07 20:11:36.517414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-12-07 20:11:36.519967"], ["updated_at", "2016-12-07 20:11:36.519967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-12-07 20:11:36.526059"], ["updated_at", "2016-12-07 20:11:36.526059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-12-07 20:11:36.528789"], ["updated_at", "2016-12-07 20:11:36.528789"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:11:36.529723' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-12-07 20:11:36.531792"], ["updated_at", "2016-12-07 20:11:36.531792"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:11:36.532617' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:11:36.540535"], ["updated_at", "2016-12-07 20:11:36.540535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-12-07 20:11:36.543250"], ["updated_at", "2016-12-07 20:11:36.543250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:11:36.545428"], ["updated_at", "2016-12-07 20:11:36.545428"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:11:36.546242' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:11:36.550869"], ["updated_at", "2016-12-07 20:11:36.550869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-12-07 20:11:36.554721"], ["updated_at", "2016-12-07 20:11:36.554721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:11:36.557606"], ["updated_at", "2016-12-07 20:11:36.557606"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:11:36.560243' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:11:36.564664"], ["updated_at", "2016-12-07 20:11:36.564664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-12-07 20:11:36.567088"], ["updated_at", "2016-12-07 20:11:36.567088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:11:36.569693"], ["updated_at", "2016-12-07 20:11:36.569693"]] SQL (0.2ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:11:36.570627' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:36.575403"], ["updated_at", "2016-12-07 20:11:36.575403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-18"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 18"], ["post_type_id", 1], ["slug", "winterfell-news-18"], ["created_at", "2016-12-07 20:11:36.578385"], ["updated_at", "2016-12-07 20:11:36.578385"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.580074"], ["updated_at", "2016-12-07 20:11:36.580074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-12-07 20:11:36.600598"], ["updated_at", "2016-12-07 20:11:36.600598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:11:36.603834"], ["updated_at", "2016-12-07 20:11:36.603834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-19"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 19"], ["post_type_id", 1], ["slug", "winterfell-news-19"], ["created_at", "2016-12-07 20:11:36.606218"], ["updated_at", "2016-12-07 20:11:36.606218"]] SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.608071"], ["updated_at", "2016-12-07 20:11:36.608071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:11:36.611781"], ["updated_at", "2016-12-07 20:11:36.611781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:11:36.614260"], ["updated_at", "2016-12-07 20:11:36.614260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.4ms) rollback transaction 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.7ms) 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';  (0.7ms) 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.7ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:12:18.098827"], ["updated_at", "2016-12-07 20:12:18.098827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (4.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (18.9ms) Completed 200 OK in 45ms (Views: 27.4ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:12:18.158639"], ["updated_at", "2016-12-07 20:12:18.158639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (6.9ms) Completed 200 OK in 15ms (Views: 8.7ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:12:18.181369"], ["updated_at", "2016-12-07 20:12:18.181369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (10.1ms) Completed 200 OK in 13ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:12:18.204337"], ["updated_at", "2016-12-07 20:12:18.204337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.1ms) Completed 200 OK in 10ms (Views: 5.5ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:12:18.224125"], ["updated_at", "2016-12-07 20:12:18.224125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:12:18.242008"], ["updated_at", "2016-12-07 20:12:18.242008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (12.5ms) Completed 200 OK in 25ms (Views: 16.3ms | ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:12:18.282014"], ["updated_at", "2016-12-07 20:12:18.282014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (2.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (9.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (11.5ms) Completed 200 OK in 22ms (Views: 12.8ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:12:18.319002"], ["updated_at", "2016-12-07 20:12:18.319002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (12.2ms) Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (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", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:12:18.357426"], ["updated_at", "2016-12-07 20:12:18.357426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:12:18.361228"], ["updated_at", "2016-12-07 20:12:18.361228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.7ms) Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:18.389025"], ["updated_at", "2016-12-07 20:12:18.389025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 20:12:18.488551"], ["updated_at", "2016-12-07 20:12:18.488551"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:18.491044"], ["updated_at", "2016-12-07 20:12:18.491044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:18.493006"], ["updated_at", "2016-12-07 20:12:18.493006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 20:12:18.503933"], ["updated_at", "2016-12-07 20:12:18.503933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:12:18.506183"], ["updated_at", "2016-12-07 20:12:18.506183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 20:12:18.509345"], ["updated_at", "2016-12-07 20:12:18.509345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:12:18.510808"], ["updated_at", "2016-12-07 20:12:18.510808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 20:12:18.513182"], ["updated_at", "2016-12-07 20:12:18.513182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:12:18.514557"], ["updated_at", "2016-12-07 20:12:18.514557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:12:18.525063"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) 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]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (1.3ms) Completed 200 OK in 25ms (Views: 0.2ms | ActiveRecord: 1.4ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:18.580718"], ["updated_at", "2016-12-07 20:12:18.580718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 20:12:18.583231"], ["updated_at", "2016-12-07 20:12:18.583231"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:18.584697"], ["updated_at", "2016-12-07 20:12:18.584697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:18.586747"], ["updated_at", "2016-12-07 20:12:18.586747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 20:12:18.589373"], ["updated_at", "2016-12-07 20:12:18.589373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:12:18.590753"], ["updated_at", "2016-12-07 20:12:18.590753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 20:12:18.594458"], ["updated_at", "2016-12-07 20:12:18.594458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:12:18.596575"], ["updated_at", "2016-12-07 20:12:18.596575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 20:12:18.600426"], ["updated_at", "2016-12-07 20:12:18.600426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:12:18.602293"], ["updated_at", "2016-12-07 20:12:18.602293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:12:18.609011"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:12:18.614299"], ["updated_at", "2016-12-07 20:12:18.614299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 9ebf890e-dbde-46fd-b909-1261377f7226) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] Pulitzer::ContentElementType Load (0.4ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:12:18.590753"], ["updated_at", "2016-12-07 20:12:18.590753"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:18.633069"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:12:18.596575"], ["updated_at", "2016-12-07 20:12:18.596575"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:18.637650"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:12:18.602293"], ["updated_at", "2016-12-07 20:12:18.602293"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:18.641480"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:12:18.644346"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ebf890e-dbde-46fd-b909-1261377f7226] Performed Pulitzer::CloneVersionJob from Inline(default) in 29.91ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:12:18.657903"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.1ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.1ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (4.2ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (9.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (31.6ms) Completed 200 OK in 37ms (Views: 0.4ms | ActiveRecord: 0.9ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:18.701540"], ["updated_at", "2016-12-07 20:12:18.701540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 20:12:18.704624"], ["updated_at", "2016-12-07 20:12:18.704624"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:18.706684"], ["updated_at", "2016-12-07 20:12:18.706684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:18.708364"], ["updated_at", "2016-12-07 20:12:18.708364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 20:12:18.711097"], ["updated_at", "2016-12-07 20:12:18.711097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:12:18.712663"], ["updated_at", "2016-12-07 20:12:18.712663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 20:12:18.715232"], ["updated_at", "2016-12-07 20:12:18.715232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:12:18.716634"], ["updated_at", "2016-12-07 20:12:18.716634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 20:12:18.718989"], ["updated_at", "2016-12-07 20:12:18.718989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:12:18.720340"], ["updated_at", "2016-12-07 20:12:18.720340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:12:18.723581"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:12:18.725859"], ["updated_at", "2016-12-07 20:12:18.725859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: bd6e8417-9240-441b-90e4-63b75aa4241e) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:12:18.712663"], ["updated_at", "2016-12-07 20:12:18.712663"]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:18.733419"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:12:18.716634"], ["updated_at", "2016-12-07 20:12:18.716634"]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:18.739350"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:12:18.720340"], ["updated_at", "2016-12-07 20:12:18.720340"]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:18.743408"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:12:18.745582"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [bd6e8417-9240-441b-90e4-63b75aa4241e] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.98ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:12:18.757494"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:12:18.760009"], ["updated_at", "2016-12-07 20:12:18.760009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 0e7f5de1-e74c-45cb-b4da-ccb85865569c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:12:18.712663"], ["updated_at", "2016-12-07 20:12:18.712663"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:12:18.768158"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:12:18.716634"], ["updated_at", "2016-12-07 20:12:18.716634"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:12:18.772642"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:12:18.720340"], ["updated_at", "2016-12-07 20:12:18.720340"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:12:18.776651"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:12:18.778788"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0e7f5de1-e74c-45cb-b4da-ccb85865569c] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.08ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (7.2ms) Completed 200 OK in 35ms (Views: 0.2ms | ActiveRecord: 2.1ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-12-07 20:12:18.804235"], ["updated_at", "2016-12-07 20:12:18.804235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:12:18.808228"], ["updated_at", "2016-12-07 20:12:18.808228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-12-07 20:12:18.822102"], ["updated_at", "2016-12-07 20:12:18.822102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:12:18.824385"], ["updated_at", "2016-12-07 20:12:18.824385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.3ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-12-07 20:12:18.834819"], ["updated_at", "2016-12-07 20:12:18.834819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:12:18.837449"], ["updated_at", "2016-12-07 20:12:18.837449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-12-07 20:12:18.846354"], ["updated_at", "2016-12-07 20:12:18.846354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.3ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-12-07 20:12:18.858196"], ["updated_at", "2016-12-07 20:12:18.858196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.5ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-12-07 20:12:18.917966"], ["updated_at", "2016-12-07 20:12:18.917966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-12-07 20:12:18.930528"], ["updated_at", "2016-12-07 20:12:18.930528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.5ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:12:18.938436"], ["updated_at", "2016-12-07 20:12:18.938436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:12:18.953431"], ["updated_at", "2016-12-07 20:12:18.953431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 409 Conflict in 4ms (Views: 0.9ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-12-07 20:12:18.966078"], ["updated_at", "2016-12-07 20:12:18.966078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-12-07 20:12:18.979019"], ["updated_at", "2016-12-07 20:12:18.979019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-12-07 20:12:18.994461"], ["updated_at", "2016-12-07 20:12:18.994461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.5ms) Completed 409 Conflict in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-12-07 20:12:19.006733"], ["updated_at", "2016-12-07 20:12:19.006733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-12-07 20:12:19.013046"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.5ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:12:19.020132"], ["updated_at", "2016-12-07 20:12:19.020132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-12-07 20:12:19.023862"], ["updated_at", "2016-12-07 20:12:19.023862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:12:19.035020"], ["updated_at", "2016-12-07 20:12:19.035020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-12-07 20:12:19.038222"], ["updated_at", "2016-12-07 20:12:19.038222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-12-07 20:12:19.050916"], ["updated_at", "2016-12-07 20:12:19.050916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-12-07 20:12:19.061916"], ["updated_at", "2016-12-07 20:12:19.061916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.074320"], ["updated_at", "2016-12-07 20:12:19.074320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 20:12:19.076827"], ["updated_at", "2016-12-07 20:12:19.076827"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.078326"], ["updated_at", "2016-12-07 20:12:19.078326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.079687"], ["updated_at", "2016-12-07 20:12:19.079687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-07 20:12:19.082869"], ["updated_at", "2016-12-07 20:12:19.082869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.085084"], ["updated_at", "2016-12-07 20:12:19.085084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-07 20:12:19.087752"], ["updated_at", "2016-12-07 20:12:19.087752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.089399"], ["updated_at", "2016-12-07 20:12:19.089399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-07 20:12:19.091906"], ["updated_at", "2016-12-07 20:12:19.091906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.093232"], ["updated_at", "2016-12-07 20:12:19.093232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:12:19.095823"], ["updated_at", "2016-12-07 20:12:19.095823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:12:19.085084"], ["updated_at", "2016-12-07 20:12:19.085084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.101399"], ["id", 4]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:12:19.089399"], ["updated_at", "2016-12-07 20:12:19.089399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.107707"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:12:19.093232"], ["updated_at", "2016-12-07 20:12:19.093232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.111695"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:12:19.114538"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.123381"], ["updated_at", "2016-12-07 20:12:19.123381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-12-07 20:12:19.125801"], ["updated_at", "2016-12-07 20:12:19.125801"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.127240"], ["updated_at", "2016-12-07 20:12:19.127240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.128577"], ["updated_at", "2016-12-07 20:12:19.128577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:12:19.134397"], ["updated_at", "2016-12-07 20:12:19.134397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:12:19.146088"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.154620"], ["updated_at", "2016-12-07 20:12:19.154620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-12-07 20:12:19.157869"], ["updated_at", "2016-12-07 20:12:19.157869"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.159986"], ["updated_at", "2016-12-07 20:12:19.159986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.161454"], ["updated_at", "2016-12-07 20:12:19.161454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-12-07 20:12:19.164199"], ["updated_at", "2016-12-07 20:12:19.164199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.165667"], ["updated_at", "2016-12-07 20:12:19.165667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-12-07 20:12:19.168345"], ["updated_at", "2016-12-07 20:12:19.168345"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.171466"], ["updated_at", "2016-12-07 20:12:19.171466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-12-07 20:12:19.174711"], ["updated_at", "2016-12-07 20:12:19.174711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.176598"], ["updated_at", "2016-12-07 20:12:19.176598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:12:19.178439"], ["updated_at", "2016-12-07 20:12:19.178439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:12:19.165667"], ["updated_at", "2016-12-07 20:12:19.165667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.184273"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:12:19.171466"], ["updated_at", "2016-12-07 20:12:19.171466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.189188"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:12:19.176598"], ["updated_at", "2016-12-07 20:12:19.176598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.193582"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:12:19.195695"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.204551"], ["updated_at", "2016-12-07 20:12:19.204551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-12-07 20:12:19.211303"], ["updated_at", "2016-12-07 20:12:19.211303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:12:19.213062"], ["updated_at", "2016-12-07 20:12:19.213062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-12-07 20:12:19.215534"], ["updated_at", "2016-12-07 20:12:19.215534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:12:19.216741"], ["updated_at", "2016-12-07 20:12:19.216741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-12-07 20:12:19.218824"], ["updated_at", "2016-12-07 20:12:19.218824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:12:19.220003"], ["updated_at", "2016-12-07 20:12:19.220003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:12:19.229975"], ["updated_at", "2016-12-07 20:12:19.229975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:12:19.233031"], ["updated_at", "2016-12-07 20:12:19.233031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:12:19.235924"], ["updated_at", "2016-12-07 20:12:19.235924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.242640"], ["updated_at", "2016-12-07 20:12:19.242640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-12-07 20:12:19.245355"], ["updated_at", "2016-12-07 20:12:19.245355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:12:19.246677"], ["updated_at", "2016-12-07 20:12:19.246677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-12-07 20:12:19.249083"], ["updated_at", "2016-12-07 20:12:19.249083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:12:19.250359"], ["updated_at", "2016-12-07 20:12:19.250359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-12-07 20:12:19.253207"], ["updated_at", "2016-12-07 20:12:19.253207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:12:19.255801"], ["updated_at", "2016-12-07 20:12:19.255801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-12-07 20:12:19.259273"], ["updated_at", "2016-12-07 20:12:19.259273"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.260784"], ["updated_at", "2016-12-07 20:12:19.260784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:12:19.266600"], ["updated_at", "2016-12-07 20:12:19.266600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:12:19.271149"], ["updated_at", "2016-12-07 20:12:19.271149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:12:19.275715"], ["updated_at", "2016-12-07 20:12:19.275715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.284173"], ["updated_at", "2016-12-07 20:12:19.284173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-12-07 20:12:19.293273"], ["updated_at", "2016-12-07 20:12:19.293273"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.294744"], ["updated_at", "2016-12-07 20:12:19.294744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.310798"], ["updated_at", "2016-12-07 20:12:19.310798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-12-07 20:12:19.313853"], ["updated_at", "2016-12-07 20:12:19.313853"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.315667"], ["updated_at", "2016-12-07 20:12:19.315667"]]  (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", "2016-12-07 20:12:19.317497"], ["updated_at", "2016-12-07 20:12:19.317497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-12-07 20:12:19.321516"], ["updated_at", "2016-12-07 20:12:19.321516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.323086"], ["updated_at", "2016-12-07 20:12:19.323086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-12-07 20:12:19.325635"], ["updated_at", "2016-12-07 20:12:19.325635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.327099"], ["updated_at", "2016-12-07 20:12:19.327099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-12-07 20:12:19.329663"], ["updated_at", "2016-12-07 20:12:19.329663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.331153"], ["updated_at", "2016-12-07 20:12:19.331153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:12:19.334658"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:12:19.339413"], ["updated_at", "2016-12-07 20:12:19.339413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 61e0b52a-c099-47d0-b6f8-eb48bc759615) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:12:19.323086"], ["updated_at", "2016-12-07 20:12:19.323086"]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.346986"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:12:19.327099"], ["updated_at", "2016-12-07 20:12:19.327099"]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (11.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.362106"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:12:19.331153"], ["updated_at", "2016-12-07 20:12:19.331153"]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.367434"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:12:19.370781"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [61e0b52a-c099-47d0-b6f8-eb48bc759615] Performed Pulitzer::CloneVersionJob from Inline(default) in 32.67ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.385018"], ["updated_at", "2016-12-07 20:12:19.385018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-12-07 20:12:19.388007"], ["updated_at", "2016-12-07 20:12:19.388007"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.389683"], ["updated_at", "2016-12-07 20:12:19.389683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.391717"], ["updated_at", "2016-12-07 20:12:19.391717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-12-07 20:12:19.394493"], ["updated_at", "2016-12-07 20:12:19.394493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.396391"], ["updated_at", "2016-12-07 20:12:19.396391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-12-07 20:12:19.399008"], ["updated_at", "2016-12-07 20:12:19.399008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.400553"], ["updated_at", "2016-12-07 20:12:19.400553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-12-07 20:12:19.403679"], ["updated_at", "2016-12-07 20:12:19.403679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.405156"], ["updated_at", "2016-12-07 20:12:19.405156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:12:19.407347"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:12:19.409714"], ["updated_at", "2016-12-07 20:12:19.409714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 1e9bec97-4df7-45db-8933-4ac3b36a92ba) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:12:19.396391"], ["updated_at", "2016-12-07 20:12:19.396391"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.417249"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:12:19.400553"], ["updated_at", "2016-12-07 20:12:19.400553"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.423062"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:12:19.405156"], ["updated_at", "2016-12-07 20:12:19.405156"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.427746"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:12:19.430157"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1e9bec97-4df7-45db-8933-4ac3b36a92ba] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.0ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:12:19.439282"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:12:19.441856"], ["updated_at", "2016-12-07 20:12:19.441856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: e6a6c3a2-b912-499b-8b6d-dd610c9e8b78) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:12:19.396391"], ["updated_at", "2016-12-07 20:12:19.396391"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:12:19.449085"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:12:19.400553"], ["updated_at", "2016-12-07 20:12:19.400553"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:12:19.453099"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:12:19.405156"], ["updated_at", "2016-12-07 20:12:19.405156"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:12:19.457068"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:12:19.460263"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6a6c3a2-b912-499b-8b6d-dd610c9e8b78] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.63ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.473135"], ["updated_at", "2016-12-07 20:12:19.473135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-12-07 20:12:19.475676"], ["updated_at", "2016-12-07 20:12:19.475676"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.477130"], ["updated_at", "2016-12-07 20:12:19.477130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.478747"], ["updated_at", "2016-12-07 20:12:19.478747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-12-07 20:12:19.481154"], ["updated_at", "2016-12-07 20:12:19.481154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.482592"], ["updated_at", "2016-12-07 20:12:19.482592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-12-07 20:12:19.484951"], ["updated_at", "2016-12-07 20:12:19.484951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.486677"], ["updated_at", "2016-12-07 20:12:19.486677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-12-07 20:12:19.490735"], ["updated_at", "2016-12-07 20:12:19.490735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.492734"], ["updated_at", "2016-12-07 20:12:19.492734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:12:19.495368"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:12:19.497892"], ["updated_at", "2016-12-07 20:12:19.497892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 7b23f291-0c04-4d2c-b828-53516f7b2c10) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:12:19.482592"], ["updated_at", "2016-12-07 20:12:19.482592"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.506697"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:12:19.486677"], ["updated_at", "2016-12-07 20:12:19.486677"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.511881"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:12:19.492734"], ["updated_at", "2016-12-07 20:12:19.492734"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.515845"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:12:19.518173"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7b23f291-0c04-4d2c-b828-53516f7b2c10] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.43ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:12:19.526031"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-12-07 20:12:19.537684"], ["updated_at", "2016-12-07 20:12:19.537684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.540772"], ["updated_at", "2016-12-07 20:12:19.540772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-12-07 20:12:19.543471"], ["updated_at", "2016-12-07 20:12:19.543471"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.545135"], ["updated_at", "2016-12-07 20:12:19.545135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.546479"], ["updated_at", "2016-12-07 20:12:19.546479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-12-07 20:12:19.548758"], ["updated_at", "2016-12-07 20:12:19.548758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.550157"], ["updated_at", "2016-12-07 20:12:19.550157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 32' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 32"], ["created_at", "2016-12-07 20:12:19.553195"], ["updated_at", "2016-12-07 20:12:19.553195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.554679"], ["updated_at", "2016-12-07 20:12:19.554679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 33' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 33"], ["created_at", "2016-12-07 20:12:19.557013"], ["updated_at", "2016-12-07 20:12:19.557013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.558320"], ["updated_at", "2016-12-07 20:12:19.558320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.566193"], ["updated_at", "2016-12-07 20:12:19.566193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-12-07 20:12:19.569322"], ["updated_at", "2016-12-07 20:12:19.569322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:12:19.572616"], ["updated_at", "2016-12-07 20:12:19.572616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:12:19.576290"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:12:19.577887"], ["updated_at", "2016-12-07 20:12:19.577887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 01d78bba-f68e-4395-b20a-ac8aeb56ee6d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:12:19.550157"], ["updated_at", "2016-12-07 20:12:19.550157"]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.587872"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:12:19.554679"], ["updated_at", "2016-12-07 20:12:19.554679"]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.592230"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:12:19.558320"], ["updated_at", "2016-12-07 20:12:19.558320"]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:12:19.596612"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:12:19.599146"], ["updated_at", "2016-12-07 20:12:19.599146"]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:12:19.600550"], ["updated_at", "2016-12-07 20:12:19.600550"]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:12:19.601860"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [01d78bba-f68e-4395-b20a-ac8aeb56ee6d] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.36ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 34' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 34"], ["created_at", "2016-12-07 20:12:19.613611"], ["updated_at", "2016-12-07 20:12:19.613611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 35"], ["created_at", "2016-12-07 20:12:19.624319"], ["updated_at", "2016-12-07 20:12:19.624319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 36' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 36"], ["created_at", "2016-12-07 20:12:19.628759"], ["updated_at", "2016-12-07 20:12:19.628759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 37' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 37"], ["created_at", "2016-12-07 20:12:19.632892"], ["updated_at", "2016-12-07 20:12:19.632892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:12:19.637815"], ["updated_at", "2016-12-07 20:12:19.637815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 32"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:12:19.639439"], ["updated_at", "2016-12-07 20:12:19.639439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:12:19.644062"], ["updated_at", "2016-12-07 20:12:19.644062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 33"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:12:19.646224"], ["updated_at", "2016-12-07 20:12:19.646224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 38"], ["created_at", "2016-12-07 20:12:19.653337"], ["updated_at", "2016-12-07 20:12:19.653337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 39' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 39"], ["created_at", "2016-12-07 20:12:19.658342"], ["updated_at", "2016-12-07 20:12:19.658342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-07 20:12:19.663437"], ["updated_at", "2016-12-07 20:12:19.663437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.791203"], ["updated_at", "2016-12-07 20:12:19.791203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.816944"], ["updated_at", "2016-12-07 20:12:19.816944"]]  (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 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-12-07 20:12:19.822772"], ["updated_at", "2016-12-07 20:12:19.822772"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.824683"], ["updated_at", "2016-12-07 20:12:19.824683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.826739"], ["updated_at", "2016-12-07 20:12:19.826739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:12:19.828237"], ["updated_at", "2016-12-07 20:12:19.828237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.834060"], ["updated_at", "2016-12-07 20:12:19.834060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-12-07 20:12:19.838253"], ["updated_at", "2016-12-07 20:12:19.838253"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.840031"], ["updated_at", "2016-12-07 20:12:19.840031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.844365"], ["updated_at", "2016-12-07 20:12:19.844365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-12-07 20:12:19.847018"], ["updated_at", "2016-12-07 20:12:19.847018"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.848635"], ["updated_at", "2016-12-07 20:12:19.848635"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-12-07 20:12:19.851029"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-12-07 20:12:19.859015"], ["updated_at", "2016-12-07 20:12:19.859015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.861939"], ["updated_at", "2016-12-07 20:12:19.861939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-12-07 20:12:19.864840"], ["updated_at", "2016-12-07 20:12:19.864840"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.866816"], ["updated_at", "2016-12-07 20:12:19.866816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.868664"], ["updated_at", "2016-12-07 20:12:19.868664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.893869"], ["updated_at", "2016-12-07 20:12:19.893869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 40"], ["created_at", "2016-12-07 20:12:19.897924"], ["updated_at", "2016-12-07 20:12:19.897924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-12-07 20:12:19.964509"], ["updated_at", "2016-12-07 20:12:19.964509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:12:19.979723"], ["updated_at", "2016-12-07 20:12:19.979723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-12-07 20:12:19.982073"], ["updated_at", "2016-12-07 20:12:19.982073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:19.991770"], ["updated_at", "2016-12-07 20:12:19.991770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-17"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 17"], ["post_type_id", 1], ["slug", "winterfell-news-17"], ["created_at", "2016-12-07 20:12:19.994582"], ["updated_at", "2016-12-07 20:12:19.994582"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:19.996248"], ["updated_at", "2016-12-07 20:12:19.996248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:12:19.998130"], ["updated_at", "2016-12-07 20:12:19.998130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-12-07 20:12:20.000276"], ["updated_at", "2016-12-07 20:12:20.000276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:12:20.006510"], ["updated_at", "2016-12-07 20:12:20.006510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:12:20.014156"], ["updated_at", "2016-12-07 20:12:20.014156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-12-07 20:12:20.016792"], ["updated_at", "2016-12-07 20:12:20.016792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-12-07 20:12:20.022861"], ["updated_at", "2016-12-07 20:12:20.022861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-12-07 20:12:20.026004"], ["updated_at", "2016-12-07 20:12:20.026004"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:12:20.027442' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-12-07 20:12:20.030153"], ["updated_at", "2016-12-07 20:12:20.030153"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:12:20.030990' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:12:20.039415"], ["updated_at", "2016-12-07 20:12:20.039415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-12-07 20:12:20.042046"], ["updated_at", "2016-12-07 20:12:20.042046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:12:20.044279"], ["updated_at", "2016-12-07 20:12:20.044279"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:12:20.045369' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:12:20.049777"], ["updated_at", "2016-12-07 20:12:20.049777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-12-07 20:12:20.052345"], ["updated_at", "2016-12-07 20:12:20.052345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:12:20.055331"], ["updated_at", "2016-12-07 20:12:20.055331"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:12:20.056208' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:12:20.060401"], ["updated_at", "2016-12-07 20:12:20.060401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-12-07 20:12:20.062942"], ["updated_at", "2016-12-07 20:12:20.062942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:12:20.065210"], ["updated_at", "2016-12-07 20:12:20.065210"]] SQL (0.2ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:12:20.066038' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:20.072582"], ["updated_at", "2016-12-07 20:12:20.072582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-18"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 18"], ["post_type_id", 1], ["slug", "winterfell-news-18"], ["created_at", "2016-12-07 20:12:20.075740"], ["updated_at", "2016-12-07 20:12:20.075740"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:20.077414"], ["updated_at", "2016-12-07 20:12:20.077414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.3ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-12-07 20:12:20.098059"], ["updated_at", "2016-12-07 20:12:20.098059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:12:20.102198"], ["updated_at", "2016-12-07 20:12:20.102198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-19"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 19"], ["post_type_id", 1], ["slug", "winterfell-news-19"], ["created_at", "2016-12-07 20:12:20.104928"], ["updated_at", "2016-12-07 20:12:20.104928"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:20.106875"], ["updated_at", "2016-12-07 20:12:20.106875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:12:20.108607"], ["updated_at", "2016-12-07 20:12:20.108607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:12:20.111248"], ["updated_at", "2016-12-07 20:12:20.111248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.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.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.0ms) 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';  (0.7ms) 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.7ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.6ms) 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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:13:25.021691"], ["updated_at", "2016-12-07 20:13:25.021691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (20.2ms) Completed 200 OK in 49ms (Views: 28.2ms | ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:13:25.083837"], ["updated_at", "2016-12-07 20:13:25.083837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.1ms) Completed 200 OK in 16ms (Views: 9.2ms | ActiveRecord: 0.6ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:13:25.107523"], ["updated_at", "2016-12-07 20:13:25.107523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (9.4ms) Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:13:25.129456"], ["updated_at", "2016-12-07 20:13:25.129456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.5ms) Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:13:25.151153"], ["updated_at", "2016-12-07 20:13:25.151153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:13:25.167973"], ["updated_at", "2016-12-07 20:13:25.167973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (12.6ms) Completed 200 OK in 26ms (Views: 16.1ms | ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:13:25.208666"], ["updated_at", "2016-12-07 20:13:25.208666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (2.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (9.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (11.0ms) Completed 200 OK in 22ms (Views: 12.3ms | ActiveRecord: 0.9ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:13:25.243008"], ["updated_at", "2016-12-07 20:13:25.243008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (11.9ms) Completed 200 OK in 25ms (Views: 13.6ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:13:25.281505"], ["updated_at", "2016-12-07 20:13:25.281505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:13:25.284504"], ["updated_at", "2016-12-07 20:13:25.284504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.2ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:25.311899"], ["updated_at", "2016-12-07 20:13:25.311899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 20:13:25.412561"], ["updated_at", "2016-12-07 20:13:25.412561"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:25.415635"], ["updated_at", "2016-12-07 20:13:25.415635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:25.417902"], ["updated_at", "2016-12-07 20:13:25.417902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 20:13:25.430415"], ["updated_at", "2016-12-07 20:13:25.430415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:25.433065"], ["updated_at", "2016-12-07 20:13:25.433065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 20:13:25.436676"], ["updated_at", "2016-12-07 20:13:25.436676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:25.438461"], ["updated_at", "2016-12-07 20:13:25.438461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 20:13:25.441416"], ["updated_at", "2016-12-07 20:13:25.441416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:25.443055"], ["updated_at", "2016-12-07 20:13:25.443055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:13:25.453611"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) 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]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (8.4ms) Completed 500 Internal Server Error in 35ms  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:25.503797"], ["updated_at", "2016-12-07 20:13:25.503797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 20:13:25.506266"], ["updated_at", "2016-12-07 20:13:25.506266"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:25.507814"], ["updated_at", "2016-12-07 20:13:25.507814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:25.509213"], ["updated_at", "2016-12-07 20:13:25.509213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 20:13:25.511818"], ["updated_at", "2016-12-07 20:13:25.511818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:25.513675"], ["updated_at", "2016-12-07 20:13:25.513675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 20:13:25.516514"], ["updated_at", "2016-12-07 20:13:25.516514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:25.518167"], ["updated_at", "2016-12-07 20:13:25.518167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 20:13:25.520937"], ["updated_at", "2016-12-07 20:13:25.520937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:25.523324"], ["updated_at", "2016-12-07 20:13:25.523324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:13:25.530287"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:25.533196"], ["updated_at", "2016-12-07 20:13:25.533196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 40edd2be-63b6-44f0-aa00-6f9d5c9842fc) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:25.513675"], ["updated_at", "2016-12-07 20:13:25.513675"]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:25.548246"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:25.518167"], ["updated_at", "2016-12-07 20:13:25.518167"]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:25.558337"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:25.523324"], ["updated_at", "2016-12-07 20:13:25.523324"]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:25.563034"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:25.565489"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [40edd2be-63b6-44f0-aa00-6f9d5c9842fc] Performed Pulitzer::CloneVersionJob from Inline(default) in 28.57ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:13:25.576876"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.1ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.1ms) Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.5ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (31.3ms) Completed 200 OK in 37ms (Views: 0.4ms | ActiveRecord: 0.9ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 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.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:25.620343"], ["updated_at", "2016-12-07 20:13:25.620343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 20:13:25.622804"], ["updated_at", "2016-12-07 20:13:25.622804"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:25.624270"], ["updated_at", "2016-12-07 20:13:25.624270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:25.625734"], ["updated_at", "2016-12-07 20:13:25.625734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 20:13:25.628376"], ["updated_at", "2016-12-07 20:13:25.628376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:25.630094"], ["updated_at", "2016-12-07 20:13:25.630094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 20:13:25.632453"], ["updated_at", "2016-12-07 20:13:25.632453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:25.634638"], ["updated_at", "2016-12-07 20:13:25.634638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 20:13:25.638163"], ["updated_at", "2016-12-07 20:13:25.638163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:25.639976"], ["updated_at", "2016-12-07 20:13:25.639976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:13:25.643829"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:25.646328"], ["updated_at", "2016-12-07 20:13:25.646328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: cb32925c-9ad7-4296-9353-2ae30b7262a9) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:25.630094"], ["updated_at", "2016-12-07 20:13:25.630094"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:25.654647"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:25.634638"], ["updated_at", "2016-12-07 20:13:25.634638"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:25.659650"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:25.639976"], ["updated_at", "2016-12-07 20:13:25.639976"]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:25.665913"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:25.668294"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [cb32925c-9ad7-4296-9353-2ae30b7262a9] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.24ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:13:25.678730"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:25.682078"], ["updated_at", "2016-12-07 20:13:25.682078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 7525b888-0db3-4a2e-9323-95407e25149b) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:25.630094"], ["updated_at", "2016-12-07 20:13:25.630094"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:13:25.689525"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:25.634638"], ["updated_at", "2016-12-07 20:13:25.634638"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:13:25.693760"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:25.639976"], ["updated_at", "2016-12-07 20:13:25.639976"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:13:25.698530"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:25.700778"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7525b888-0db3-4a2e-9323-95407e25149b] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.06ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (6.4ms) Completed 200 OK in 35ms (Views: 0.3ms | ActiveRecord: 2.1ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-12-07 20:13:25.723243"], ["updated_at", "2016-12-07 20:13:25.723243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:25.727033"], ["updated_at", "2016-12-07 20:13:25.727033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-12-07 20:13:25.741970"], ["updated_at", "2016-12-07 20:13:25.741970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:25.744255"], ["updated_at", "2016-12-07 20:13:25.744255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-12-07 20:13:25.754543"], ["updated_at", "2016-12-07 20:13:25.754543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:25.757254"], ["updated_at", "2016-12-07 20:13:25.757254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.9ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-12-07 20:13:25.768981"], ["updated_at", "2016-12-07 20:13:25.768981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-12-07 20:13:25.779847"], ["updated_at", "2016-12-07 20:13:25.779847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-12-07 20:13:25.819492"], ["updated_at", "2016-12-07 20:13:25.819492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-12-07 20:13:25.840929"], ["updated_at", "2016-12-07 20:13:25.840929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 0.9ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:13:25.846597"], ["updated_at", "2016-12-07 20:13:25.846597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:13:25.860278"], ["updated_at", "2016-12-07 20:13:25.860278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 409 Conflict in 6ms (Views: 0.7ms | ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-12-07 20:13:25.887411"], ["updated_at", "2016-12-07 20:13:25.887411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-12-07 20:13:25.898579"], ["updated_at", "2016-12-07 20:13:25.898579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-12-07 20:13:25.914282"], ["updated_at", "2016-12-07 20:13:25.914282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 409 Conflict in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-12-07 20:13:25.925775"], ["updated_at", "2016-12-07 20:13:25.925775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-12-07 20:13:25.934171"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:13:25.939431"], ["updated_at", "2016-12-07 20:13:25.939431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-12-07 20:13:25.942386"], ["updated_at", "2016-12-07 20:13:25.942386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 409 Conflict in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:13:25.954523"], ["updated_at", "2016-12-07 20:13:25.954523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-12-07 20:13:25.957919"], ["updated_at", "2016-12-07 20:13:25.957919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 4ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-12-07 20:13:25.971741"], ["updated_at", "2016-12-07 20:13:25.971741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-12-07 20:13:25.981034"], ["updated_at", "2016-12-07 20:13:25.981034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:25.995089"], ["updated_at", "2016-12-07 20:13:25.995089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 20:13:25.998320"], ["updated_at", "2016-12-07 20:13:25.998320"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:25.999979"], ["updated_at", "2016-12-07 20:13:25.999979"]]  (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", "2016-12-07 20:13:26.001385"], ["updated_at", "2016-12-07 20:13:26.001385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-07 20:13:26.004999"], ["updated_at", "2016-12-07 20:13:26.004999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.007557"], ["updated_at", "2016-12-07 20:13:26.007557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-07 20:13:26.010279"], ["updated_at", "2016-12-07 20:13:26.010279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.011776"], ["updated_at", "2016-12-07 20:13:26.011776"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-07 20:13:26.016705"], ["updated_at", "2016-12-07 20:13:26.016705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.018125"], ["updated_at", "2016-12-07 20:13:26.018125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:26.020734"], ["updated_at", "2016-12-07 20:13:26.020734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:26.007557"], ["updated_at", "2016-12-07 20:13:26.007557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.026254"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:26.011776"], ["updated_at", "2016-12-07 20:13:26.011776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.030961"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:26.018125"], ["updated_at", "2016-12-07 20:13:26.018125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.035695"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:26.037899"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.046452"], ["updated_at", "2016-12-07 20:13:26.046452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-12-07 20:13:26.049095"], ["updated_at", "2016-12-07 20:13:26.049095"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.050535"], ["updated_at", "2016-12-07 20:13:26.050535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.051889"], ["updated_at", "2016-12-07 20:13:26.051889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:26.057316"], ["updated_at", "2016-12-07 20:13:26.057316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:26.071369"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.081025"], ["updated_at", "2016-12-07 20:13:26.081025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-12-07 20:13:26.083768"], ["updated_at", "2016-12-07 20:13:26.083768"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.085251"], ["updated_at", "2016-12-07 20:13:26.085251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.087359"], ["updated_at", "2016-12-07 20:13:26.087359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-12-07 20:13:26.091005"], ["updated_at", "2016-12-07 20:13:26.091005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.092698"], ["updated_at", "2016-12-07 20:13:26.092698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-12-07 20:13:26.095581"], ["updated_at", "2016-12-07 20:13:26.095581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.099001"], ["updated_at", "2016-12-07 20:13:26.099001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-12-07 20:13:26.101903"], ["updated_at", "2016-12-07 20:13:26.101903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.103297"], ["updated_at", "2016-12-07 20:13:26.103297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:26.104932"], ["updated_at", "2016-12-07 20:13:26.104932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:26.092698"], ["updated_at", "2016-12-07 20:13:26.092698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.113172"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:26.099001"], ["updated_at", "2016-12-07 20:13:26.099001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.118175"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:26.103297"], ["updated_at", "2016-12-07 20:13:26.103297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.122000"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:26.124061"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.134252"], ["updated_at", "2016-12-07 20:13:26.134252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-12-07 20:13:26.142157"], ["updated_at", "2016-12-07 20:13:26.142157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:13:26.143815"], ["updated_at", "2016-12-07 20:13:26.143815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-12-07 20:13:26.146730"], ["updated_at", "2016-12-07 20:13:26.146730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:13:26.148181"], ["updated_at", "2016-12-07 20:13:26.148181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-12-07 20:13:26.150399"], ["updated_at", "2016-12-07 20:13:26.150399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:13:26.151726"], ["updated_at", "2016-12-07 20:13:26.151726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:13:26.161920"], ["updated_at", "2016-12-07 20:13:26.161920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:13:26.165176"], ["updated_at", "2016-12-07 20:13:26.165176"]]  (0.0ms) RELEASE SAVEPOINT active_record_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 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:13:26.168644"], ["updated_at", "2016-12-07 20:13:26.168644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.174237"], ["updated_at", "2016-12-07 20:13:26.174237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-12-07 20:13:26.177245"], ["updated_at", "2016-12-07 20:13:26.177245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:13:26.178649"], ["updated_at", "2016-12-07 20:13:26.178649"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-12-07 20:13:26.183161"], ["updated_at", "2016-12-07 20:13:26.183161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:13:26.184481"], ["updated_at", "2016-12-07 20:13:26.184481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-12-07 20:13:26.186528"], ["updated_at", "2016-12-07 20:13:26.186528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:13:26.187687"], ["updated_at", "2016-12-07 20:13:26.187687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-12-07 20:13:26.191214"], ["updated_at", "2016-12-07 20:13:26.191214"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.193775"], ["updated_at", "2016-12-07 20:13:26.193775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:13:26.200871"], ["updated_at", "2016-12-07 20:13:26.200871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:13:26.205668"], ["updated_at", "2016-12-07 20:13:26.205668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:13:26.211741"], ["updated_at", "2016-12-07 20:13:26.211741"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.221085"], ["updated_at", "2016-12-07 20:13:26.221085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-12-07 20:13:26.227546"], ["updated_at", "2016-12-07 20:13:26.227546"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.229695"], ["updated_at", "2016-12-07 20:13:26.229695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.247762"], ["updated_at", "2016-12-07 20:13:26.247762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-12-07 20:13:26.250470"], ["updated_at", "2016-12-07 20:13:26.250470"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.251973"], ["updated_at", "2016-12-07 20:13:26.251973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.253385"], ["updated_at", "2016-12-07 20:13:26.253385"]]  (0.1ms) 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" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-12-07 20:13:26.257274"], ["updated_at", "2016-12-07 20:13:26.257274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.259146"], ["updated_at", "2016-12-07 20:13:26.259146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-12-07 20:13:26.261681"], ["updated_at", "2016-12-07 20:13:26.261681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.263218"], ["updated_at", "2016-12-07 20:13:26.263218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-12-07 20:13:26.267755"], ["updated_at", "2016-12-07 20:13:26.267755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.269212"], ["updated_at", "2016-12-07 20:13:26.269212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:13:26.271381"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:26.273724"], ["updated_at", "2016-12-07 20:13:26.273724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 00c1ef9b-6702-474a-baa7-0c945417179f) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:26.259146"], ["updated_at", "2016-12-07 20:13:26.259146"]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.282310"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:26.263218"], ["updated_at", "2016-12-07 20:13:26.263218"]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.286530"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:26.269212"], ["updated_at", "2016-12-07 20:13:26.269212"]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.290796"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:26.293094"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [00c1ef9b-6702-474a-baa7-0c945417179f] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.2ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.306279"], ["updated_at", "2016-12-07 20:13:26.306279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-12-07 20:13:26.309765"], ["updated_at", "2016-12-07 20:13:26.309765"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.311516"], ["updated_at", "2016-12-07 20:13:26.311516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.313446"], ["updated_at", "2016-12-07 20:13:26.313446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-12-07 20:13:26.316297"], ["updated_at", "2016-12-07 20:13:26.316297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.317864"], ["updated_at", "2016-12-07 20:13:26.317864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-12-07 20:13:26.320404"], ["updated_at", "2016-12-07 20:13:26.320404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.321812"], ["updated_at", "2016-12-07 20:13:26.321812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-12-07 20:13:26.323995"], ["updated_at", "2016-12-07 20:13:26.323995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.325225"], ["updated_at", "2016-12-07 20:13:26.325225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:13:26.338173"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:26.343068"], ["updated_at", "2016-12-07 20:13:26.343068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 4806dd50-ec70-4d34-8a54-b3abd07c9d62) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:26.317864"], ["updated_at", "2016-12-07 20:13:26.317864"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.352818"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:26.321812"], ["updated_at", "2016-12-07 20:13:26.321812"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.356893"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:26.325225"], ["updated_at", "2016-12-07 20:13:26.325225"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.361853"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:26.364838"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4806dd50-ec70-4d34-8a54-b3abd07c9d62] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.26ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:13:26.371878"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:26.374354"], ["updated_at", "2016-12-07 20:13:26.374354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 983bae69-b19c-4386-b2b1-3d9c57576969) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:26.317864"], ["updated_at", "2016-12-07 20:13:26.317864"]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:13:26.383817"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:26.321812"], ["updated_at", "2016-12-07 20:13:26.321812"]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:13:26.388432"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:26.325225"], ["updated_at", "2016-12-07 20:13:26.325225"]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:13:26.393059"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:26.395238"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [983bae69-b19c-4386-b2b1-3d9c57576969] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.75ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.409346"], ["updated_at", "2016-12-07 20:13:26.409346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-12-07 20:13:26.412703"], ["updated_at", "2016-12-07 20:13:26.412703"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.414767"], ["updated_at", "2016-12-07 20:13:26.414767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.416437"], ["updated_at", "2016-12-07 20:13:26.416437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-12-07 20:13:26.419014"], ["updated_at", "2016-12-07 20:13:26.419014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.420705"], ["updated_at", "2016-12-07 20:13:26.420705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-12-07 20:13:26.424779"], ["updated_at", "2016-12-07 20:13:26.424779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.426394"], ["updated_at", "2016-12-07 20:13:26.426394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-12-07 20:13:26.429141"], ["updated_at", "2016-12-07 20:13:26.429141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.430781"], ["updated_at", "2016-12-07 20:13:26.430781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:13:26.433320"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:26.435941"], ["updated_at", "2016-12-07 20:13:26.435941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 8dbe8539-e196-45e2-b63d-13ec3ab370da) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:26.420705"], ["updated_at", "2016-12-07 20:13:26.420705"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.445239"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:26.426394"], ["updated_at", "2016-12-07 20:13:26.426394"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.451775"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:26.430781"], ["updated_at", "2016-12-07 20:13:26.430781"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.456061"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:26.458178"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8dbe8539-e196-45e2-b63d-13ec3ab370da] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.51ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:13:26.464524"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-12-07 20:13:26.476145"], ["updated_at", "2016-12-07 20:13:26.476145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.479144"], ["updated_at", "2016-12-07 20:13:26.479144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-12-07 20:13:26.481954"], ["updated_at", "2016-12-07 20:13:26.481954"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.483974"], ["updated_at", "2016-12-07 20:13:26.483974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.485488"], ["updated_at", "2016-12-07 20:13:26.485488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-12-07 20:13:26.487770"], ["updated_at", "2016-12-07 20:13:26.487770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.489204"], ["updated_at", "2016-12-07 20:13:26.489204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 32' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 32"], ["created_at", "2016-12-07 20:13:26.491587"], ["updated_at", "2016-12-07 20:13:26.491587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.492953"], ["updated_at", "2016-12-07 20:13:26.492953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 33' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 33"], ["created_at", "2016-12-07 20:13:26.495316"], ["updated_at", "2016-12-07 20:13:26.495316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.496934"], ["updated_at", "2016-12-07 20:13:26.496934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.502988"], ["updated_at", "2016-12-07 20:13:26.502988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-12-07 20:13:26.505114"], ["updated_at", "2016-12-07 20:13:26.505114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.506869"], ["updated_at", "2016-12-07 20:13:26.506869"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:13:26.512027"], ["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:26.516067"], ["updated_at", "2016-12-07 20:13:26.516067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 325b5b9d-ea1c-4d07-bf2d-7d28736228e8) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:26.489204"], ["updated_at", "2016-12-07 20:13:26.489204"]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.523761"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:26.492953"], ["updated_at", "2016-12-07 20:13:26.492953"]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.527633"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:26.496934"], ["updated_at", "2016-12-07 20:13:26.496934"]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:26.532504"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:13:26.535162"], ["updated_at", "2016-12-07 20:13:26.535162"]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:13:26.536549"], ["updated_at", "2016-12-07 20:13:26.536549"]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:26.537805"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [325b5b9d-ea1c-4d07-bf2d-7d28736228e8] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.81ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 34' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 34"], ["created_at", "2016-12-07 20:13:26.547866"], ["updated_at", "2016-12-07 20:13:26.547866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 35"], ["created_at", "2016-12-07 20:13:26.556961"], ["updated_at", "2016-12-07 20:13:26.556961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 36' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 36"], ["created_at", "2016-12-07 20:13:26.561367"], ["updated_at", "2016-12-07 20:13:26.561367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 37' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 37"], ["created_at", "2016-12-07 20:13:26.565559"], ["updated_at", "2016-12-07 20:13:26.565559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:13:26.570229"], ["updated_at", "2016-12-07 20:13:26.570229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 32"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:26.571829"], ["updated_at", "2016-12-07 20:13:26.571829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:13:26.576653"], ["updated_at", "2016-12-07 20:13:26.576653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 33"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:26.578209"], ["updated_at", "2016-12-07 20:13:26.578209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 38"], ["created_at", "2016-12-07 20:13:26.584200"], ["updated_at", "2016-12-07 20:13:26.584200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 39' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 39"], ["created_at", "2016-12-07 20:13:26.588246"], ["updated_at", "2016-12-07 20:13:26.588246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-07 20:13:26.592569"], ["updated_at", "2016-12-07 20:13:26.592569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.724560"], ["updated_at", "2016-12-07 20:13:26.724560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.740781"], ["updated_at", "2016-12-07 20:13:26.740781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-12-07 20:13:26.743425"], ["updated_at", "2016-12-07 20:13:26.743425"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.745209"], ["updated_at", "2016-12-07 20:13:26.745209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.748918"], ["updated_at", "2016-12-07 20:13:26.748918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:13:26.753102"], ["updated_at", "2016-12-07 20:13:26.753102"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.763474"], ["updated_at", "2016-12-07 20:13:26.763474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-12-07 20:13:26.766059"], ["updated_at", "2016-12-07 20:13:26.766059"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.767707"], ["updated_at", "2016-12-07 20:13:26.767707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.773119"], ["updated_at", "2016-12-07 20:13:26.773119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-12-07 20:13:26.775697"], ["updated_at", "2016-12-07 20:13:26.775697"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.777710"], ["updated_at", "2016-12-07 20:13:26.777710"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.3ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-12-07 20:13:26.780166"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-12-07 20:13:26.788508"], ["updated_at", "2016-12-07 20:13:26.788508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.791328"], ["updated_at", "2016-12-07 20:13:26.791328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-12-07 20:13:26.793973"], ["updated_at", "2016-12-07 20:13:26.793973"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.796655"], ["updated_at", "2016-12-07 20:13:26.796655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.798323"], ["updated_at", "2016-12-07 20:13:26.798323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.819727"], ["updated_at", "2016-12-07 20:13:26.819727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 40' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 40"], ["created_at", "2016-12-07 20:13:26.824447"], ["updated_at", "2016-12-07 20:13:26.824447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-12-07 20:13:26.875756"], ["updated_at", "2016-12-07 20:13:26.875756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:26.900742"], ["updated_at", "2016-12-07 20:13:26.900742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-12-07 20:13:26.903502"], ["updated_at", "2016-12-07 20:13:26.903502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:26.911100"], ["updated_at", "2016-12-07 20:13:26.911100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-17"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 17"], ["post_type_id", 1], ["slug", "winterfell-news-17"], ["created_at", "2016-12-07 20:13:26.917858"], ["updated_at", "2016-12-07 20:13:26.917858"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:26.920344"], ["updated_at", "2016-12-07 20:13:26.920344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:13:26.921966"], ["updated_at", "2016-12-07 20:13:26.921966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-12-07 20:13:26.924111"], ["updated_at", "2016-12-07 20:13:26.924111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:13:26.927902"], ["updated_at", "2016-12-07 20:13:26.927902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:26.938760"], ["updated_at", "2016-12-07 20:13:26.938760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-12-07 20:13:26.941707"], ["updated_at", "2016-12-07 20:13:26.941707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-12-07 20:13:26.955652"], ["updated_at", "2016-12-07 20:13:26.955652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-12-07 20:13:26.958681"], ["updated_at", "2016-12-07 20:13:26.958681"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:13:26.959529' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-12-07 20:13:26.961549"], ["updated_at", "2016-12-07 20:13:26.961549"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:13:26.962270' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:26.970501"], ["updated_at", "2016-12-07 20:13:26.970501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-12-07 20:13:26.972959"], ["updated_at", "2016-12-07 20:13:26.972959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:13:26.975222"], ["updated_at", "2016-12-07 20:13:26.975222"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:13:26.976059' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:26.981395"], ["updated_at", "2016-12-07 20:13:26.981395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-12-07 20:13:26.983755"], ["updated_at", "2016-12-07 20:13:26.983755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:13:26.985775"], ["updated_at", "2016-12-07 20:13:26.985775"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:13:26.986634' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:26.992280"], ["updated_at", "2016-12-07 20:13:26.992280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-12-07 20:13:26.995138"], ["updated_at", "2016-12-07 20:13:26.995138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:13:26.998821"], ["updated_at", "2016-12-07 20:13:26.998821"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:13:27.000201' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:27.005075"], ["updated_at", "2016-12-07 20:13:27.005075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-18"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 18"], ["post_type_id", 1], ["slug", "winterfell-news-18"], ["created_at", "2016-12-07 20:13:27.007758"], ["updated_at", "2016-12-07 20:13:27.007758"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:27.009337"], ["updated_at", "2016-12-07 20:13:27.009337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-12-07 20:13:27.029668"], ["updated_at", "2016-12-07 20:13:27.029668"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:27.034421"], ["updated_at", "2016-12-07 20:13:27.034421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-19"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 19"], ["post_type_id", 1], ["slug", "winterfell-news-19"], ["created_at", "2016-12-07 20:13:27.038326"], ["updated_at", "2016-12-07 20:13:27.038326"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:27.041205"], ["updated_at", "2016-12-07 20:13:27.041205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:27.043404"], ["updated_at", "2016-12-07 20:13:27.043404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:13:27.045890"], ["updated_at", "2016-12-07 20:13:27.045890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.4ms) rollback transaction 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.1ms) 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.5ms) 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.8ms) 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';  (0.8ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:13:47.418964"], ["updated_at", "2016-12-07 20:13:47.418964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (20.0ms) Completed 200 OK in 45ms (Views: 28.0ms | ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:13:47.477846"], ["updated_at", "2016-12-07 20:13:47.477846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.5ms) Completed 200 OK in 15ms (Views: 9.2ms | ActiveRecord: 0.6ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:13:47.501607"], ["updated_at", "2016-12-07 20:13:47.501607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (11.0ms) Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:13:47.524970"], ["updated_at", "2016-12-07 20:13:47.524970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.5ms) Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:13:47.545565"], ["updated_at", "2016-12-07 20:13:47.545565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.1ms) Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.3ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:13:47.562467"], ["updated_at", "2016-12-07 20:13:47.562467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.2ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (12.9ms) Completed 200 OK in 26ms (Views: 17.6ms | ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:13:47.605011"], ["updated_at", "2016-12-07 20:13:47.605011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.2ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (10.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (12.4ms) Completed 200 OK in 23ms (Views: 13.9ms | ActiveRecord: 1.0ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:13:47.640732"], ["updated_at", "2016-12-07 20:13:47.640732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (12.7ms) Completed 200 OK in 27ms (Views: 24.2ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:13:47.679608"], ["updated_at", "2016-12-07 20:13:47.679608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:13:47.683390"], ["updated_at", "2016-12-07 20:13:47.683390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.6ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:47.711650"], ["updated_at", "2016-12-07 20:13:47.711650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 20:13:47.809272"], ["updated_at", "2016-12-07 20:13:47.809272"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:47.812068"], ["updated_at", "2016-12-07 20:13:47.812068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:47.814282"], ["updated_at", "2016-12-07 20:13:47.814282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 20:13:47.824958"], ["updated_at", "2016-12-07 20:13:47.824958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:47.827264"], ["updated_at", "2016-12-07 20:13:47.827264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 20:13:47.829869"], ["updated_at", "2016-12-07 20:13:47.829869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:47.831283"], ["updated_at", "2016-12-07 20:13:47.831283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 20:13:47.833568"], ["updated_at", "2016-12-07 20:13:47.833568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:47.834997"], ["updated_at", "2016-12-07 20:13:47.834997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:13:47.845842"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (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", 2]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 0.2ms | ActiveRecord: 1.2ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:47.895942"], ["updated_at", "2016-12-07 20:13:47.895942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 20:13:47.898398"], ["updated_at", "2016-12-07 20:13:47.898398"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:47.899944"], ["updated_at", "2016-12-07 20:13:47.899944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:47.901402"], ["updated_at", "2016-12-07 20:13:47.901402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 20:13:47.904387"], ["updated_at", "2016-12-07 20:13:47.904387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:47.905835"], ["updated_at", "2016-12-07 20:13:47.905835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 20:13:47.909115"], ["updated_at", "2016-12-07 20:13:47.909115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:47.911676"], ["updated_at", "2016-12-07 20:13:47.911676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 20:13:47.915750"], ["updated_at", "2016-12-07 20:13:47.915750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:47.918011"], ["updated_at", "2016-12-07 20:13:47.918011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:13:47.924617"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:47.927811"], ["updated_at", "2016-12-07 20:13:47.927811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 0b13d50f-3817-4e58-8197-701e6dfff803) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] Pulitzer::Version Load (0.4ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] 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]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:47.905835"], ["updated_at", "2016-12-07 20:13:47.905835"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:47.950110"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:47.911676"], ["updated_at", "2016-12-07 20:13:47.911676"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:47.955072"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:47.918011"], ["updated_at", "2016-12-07 20:13:47.918011"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:47.959582"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:47.961722"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0b13d50f-3817-4e58-8197-701e6dfff803] Performed Pulitzer::CloneVersionJob from Inline(default) in 29.68ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:13:47.974571"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.0ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (5.9ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.8ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (8.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (33.8ms) Completed 200 OK in 43ms (Views: 0.4ms | ActiveRecord: 0.9ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (1.1ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:48.023753"], ["updated_at", "2016-12-07 20:13:48.023753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 20:13:48.026432"], ["updated_at", "2016-12-07 20:13:48.026432"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.028800"], ["updated_at", "2016-12-07 20:13:48.028800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.030521"], ["updated_at", "2016-12-07 20:13:48.030521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 20:13:48.033608"], ["updated_at", "2016-12-07 20:13:48.033608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.035254"], ["updated_at", "2016-12-07 20:13:48.035254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 20:13:48.037988"], ["updated_at", "2016-12-07 20:13:48.037988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.039470"], ["updated_at", "2016-12-07 20:13:48.039470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 20:13:48.041879"], ["updated_at", "2016-12-07 20:13:48.041879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.043228"], ["updated_at", "2016-12-07 20:13:48.043228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:13:48.046573"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:48.049028"], ["updated_at", "2016-12-07 20:13:48.049028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 3e9ea863-753b-43ed-9566-75cec147880b) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:48.035254"], ["updated_at", "2016-12-07 20:13:48.035254"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.058079"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:48.039470"], ["updated_at", "2016-12-07 20:13:48.039470"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.064268"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:48.043228"], ["updated_at", "2016-12-07 20:13:48.043228"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.070749"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:48.073301"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3e9ea863-753b-43ed-9566-75cec147880b] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.31ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:13:48.084964"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:48.087924"], ["updated_at", "2016-12-07 20:13:48.087924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 021a708a-92ad-4227-a74b-598a3b72cb4d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:48.035254"], ["updated_at", "2016-12-07 20:13:48.035254"]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:13:48.096519"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:48.039470"], ["updated_at", "2016-12-07 20:13:48.039470"]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:13:48.101206"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:48.043228"], ["updated_at", "2016-12-07 20:13:48.043228"]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:13:48.105746"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:48.107964"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [021a708a-92ad-4227-a74b-598a3b72cb4d] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.26ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (6.5ms) Completed 200 OK in 36ms (Views: 0.2ms | ActiveRecord: 2.0ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-12-07 20:13:48.130237"], ["updated_at", "2016-12-07 20:13:48.130237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:48.134296"], ["updated_at", "2016-12-07 20:13:48.134296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-12-07 20:13:48.148775"], ["updated_at", "2016-12-07 20:13:48.148775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:48.151364"], ["updated_at", "2016-12-07 20:13:48.151364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-12-07 20:13:48.162274"], ["updated_at", "2016-12-07 20:13:48.162274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:48.165003"], ["updated_at", "2016-12-07 20:13:48.165003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-12-07 20:13:48.175547"], ["updated_at", "2016-12-07 20:13:48.175547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-12-07 20:13:48.186472"], ["updated_at", "2016-12-07 20:13:48.186472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-12-07 20:13:48.245576"], ["updated_at", "2016-12-07 20:13:48.245576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 1.9ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-12-07 20:13:48.257229"], ["updated_at", "2016-12-07 20:13:48.257229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:13:48.262850"], ["updated_at", "2016-12-07 20:13:48.262850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:13:48.279783"], ["updated_at", "2016-12-07 20:13:48.279783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-12-07 20:13:48.294813"], ["updated_at", "2016-12-07 20:13:48.294813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-12-07 20:13:48.305344"], ["updated_at", "2016-12-07 20:13:48.305344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-12-07 20:13:48.324248"], ["updated_at", "2016-12-07 20:13:48.324248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-12-07 20:13:48.335677"], ["updated_at", "2016-12-07 20:13:48.335677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-12-07 20:13:48.342688"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:13:48.348801"], ["updated_at", "2016-12-07 20:13:48.348801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-12-07 20:13:48.352281"], ["updated_at", "2016-12-07 20:13:48.352281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:13:48.364820"], ["updated_at", "2016-12-07 20:13:48.364820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-12-07 20:13:48.368640"], ["updated_at", "2016-12-07 20:13:48.368640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-12-07 20:13:48.380152"], ["updated_at", "2016-12-07 20:13:48.380152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-12-07 20:13:48.391416"], ["updated_at", "2016-12-07 20:13:48.391416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:48.404007"], ["updated_at", "2016-12-07 20:13:48.404007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 20:13:48.406447"], ["updated_at", "2016-12-07 20:13:48.406447"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.407956"], ["updated_at", "2016-12-07 20:13:48.407956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.409306"], ["updated_at", "2016-12-07 20:13:48.409306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-07 20:13:48.413179"], ["updated_at", "2016-12-07 20:13:48.413179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.415645"], ["updated_at", "2016-12-07 20:13:48.415645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-07 20:13:48.420707"], ["updated_at", "2016-12-07 20:13:48.420707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.422215"], ["updated_at", "2016-12-07 20:13:48.422215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-07 20:13:48.424468"], ["updated_at", "2016-12-07 20:13:48.424468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.425785"], ["updated_at", "2016-12-07 20:13:48.425785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:48.428323"], ["updated_at", "2016-12-07 20:13:48.428323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:48.415645"], ["updated_at", "2016-12-07 20:13:48.415645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.434782"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:48.422215"], ["updated_at", "2016-12-07 20:13:48.422215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.439787"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:48.425785"], ["updated_at", "2016-12-07 20:13:48.425785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.444104"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:48.446292"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:48.457111"], ["updated_at", "2016-12-07 20:13:48.457111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-12-07 20:13:48.459545"], ["updated_at", "2016-12-07 20:13:48.459545"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.461007"], ["updated_at", "2016-12-07 20:13:48.461007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.462476"], ["updated_at", "2016-12-07 20:13:48.462476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:48.469687"], ["updated_at", "2016-12-07 20:13:48.469687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.2ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:48.483528"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:48.493685"], ["updated_at", "2016-12-07 20:13:48.493685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-12-07 20:13:48.496919"], ["updated_at", "2016-12-07 20:13:48.496919"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.498560"], ["updated_at", "2016-12-07 20:13:48.498560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.500370"], ["updated_at", "2016-12-07 20:13:48.500370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-12-07 20:13:48.504937"], ["updated_at", "2016-12-07 20:13:48.504937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.506777"], ["updated_at", "2016-12-07 20:13:48.506777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-12-07 20:13:48.509685"], ["updated_at", "2016-12-07 20:13:48.509685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.511452"], ["updated_at", "2016-12-07 20:13:48.511452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-12-07 20:13:48.514223"], ["updated_at", "2016-12-07 20:13:48.514223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.515588"], ["updated_at", "2016-12-07 20:13:48.515588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:48.518185"], ["updated_at", "2016-12-07 20:13:48.518185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:48.506777"], ["updated_at", "2016-12-07 20:13:48.506777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.524095"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:48.511452"], ["updated_at", "2016-12-07 20:13:48.511452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.528736"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:48.515588"], ["updated_at", "2016-12-07 20:13:48.515588"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.535831"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:48.538365"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:48.547567"], ["updated_at", "2016-12-07 20:13:48.547567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-12-07 20:13:48.554743"], ["updated_at", "2016-12-07 20:13:48.554743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:13:48.557391"], ["updated_at", "2016-12-07 20:13:48.557391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-12-07 20:13:48.560288"], ["updated_at", "2016-12-07 20:13:48.560288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:13:48.561920"], ["updated_at", "2016-12-07 20:13:48.561920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-12-07 20:13:48.564403"], ["updated_at", "2016-12-07 20:13:48.564403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:13:48.565793"], ["updated_at", "2016-12-07 20:13:48.565793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:13:48.578513"], ["updated_at", "2016-12-07 20:13:48.578513"]]  (0.1ms) RELEASE SAVEPOINT active_record_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 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:13:48.583378"], ["updated_at", "2016-12-07 20:13:48.583378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:13:48.587612"], ["updated_at", "2016-12-07 20:13:48.587612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:48.593555"], ["updated_at", "2016-12-07 20:13:48.593555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-12-07 20:13:48.596725"], ["updated_at", "2016-12-07 20:13:48.596725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:13:48.598316"], ["updated_at", "2016-12-07 20:13:48.598316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-12-07 20:13:48.603024"], ["updated_at", "2016-12-07 20:13:48.603024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:13:48.604517"], ["updated_at", "2016-12-07 20:13:48.604517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-12-07 20:13:48.607668"], ["updated_at", "2016-12-07 20:13:48.607668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:13:48.609230"], ["updated_at", "2016-12-07 20:13:48.609230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-12-07 20:13:48.613156"], ["updated_at", "2016-12-07 20:13:48.613156"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.614860"], ["updated_at", "2016-12-07 20:13:48.614860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:13:48.621398"], ["updated_at", "2016-12-07 20:13:48.621398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:13:48.625446"], ["updated_at", "2016-12-07 20:13:48.625446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:13:48.630963"], ["updated_at", "2016-12-07 20:13:48.630963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSectionType Load (0.2ms) 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.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:48.640133"], ["updated_at", "2016-12-07 20:13:48.640133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-12-07 20:13:48.646472"], ["updated_at", "2016-12-07 20:13:48.646472"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.648225"], ["updated_at", "2016-12-07 20:13:48.648225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:48.663708"], ["updated_at", "2016-12-07 20:13:48.663708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-12-07 20:13:48.666295"], ["updated_at", "2016-12-07 20:13:48.666295"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.668243"], ["updated_at", "2016-12-07 20:13:48.668243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.670132"], ["updated_at", "2016-12-07 20:13:48.670132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-12-07 20:13:48.673206"], ["updated_at", "2016-12-07 20:13:48.673206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.675536"], ["updated_at", "2016-12-07 20:13:48.675536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-12-07 20:13:48.679079"], ["updated_at", "2016-12-07 20:13:48.679079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.680769"], ["updated_at", "2016-12-07 20:13:48.680769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-12-07 20:13:48.685214"], ["updated_at", "2016-12-07 20:13:48.685214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.687668"], ["updated_at", "2016-12-07 20:13:48.687668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:13:48.690317"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:48.693652"], ["updated_at", "2016-12-07 20:13:48.693652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 316c528c-8ff2-4d4c-832d-5b46dcd37ac6) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:48.675536"], ["updated_at", "2016-12-07 20:13:48.675536"]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.703111"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:48.680769"], ["updated_at", "2016-12-07 20:13:48.680769"]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.706875"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:48.687668"], ["updated_at", "2016-12-07 20:13:48.687668"]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.720692"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:48.722861"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [316c528c-8ff2-4d4c-832d-5b46dcd37ac6] Performed Pulitzer::CloneVersionJob from Inline(default) in 29.9ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:48.736417"], ["updated_at", "2016-12-07 20:13:48.736417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-12-07 20:13:48.739228"], ["updated_at", "2016-12-07 20:13:48.739228"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.740801"], ["updated_at", "2016-12-07 20:13:48.740801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.742453"], ["updated_at", "2016-12-07 20:13:48.742453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-12-07 20:13:48.744976"], ["updated_at", "2016-12-07 20:13:48.744976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.746453"], ["updated_at", "2016-12-07 20:13:48.746453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-12-07 20:13:48.748861"], ["updated_at", "2016-12-07 20:13:48.748861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.750170"], ["updated_at", "2016-12-07 20:13:48.750170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-12-07 20:13:48.752747"], ["updated_at", "2016-12-07 20:13:48.752747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.754166"], ["updated_at", "2016-12-07 20:13:48.754166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:13:48.756330"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:48.758542"], ["updated_at", "2016-12-07 20:13:48.758542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 0d9af081-7406-46e8-87da-fd7b1cd34447) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:48.746453"], ["updated_at", "2016-12-07 20:13:48.746453"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.766690"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:48.750170"], ["updated_at", "2016-12-07 20:13:48.750170"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.772945"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:48.754166"], ["updated_at", "2016-12-07 20:13:48.754166"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.777088"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:48.779228"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0d9af081-7406-46e8-87da-fd7b1cd34447] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.24ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:13:48.788505"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:48.791141"], ["updated_at", "2016-12-07 20:13:48.791141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: a392264c-4268-482b-8d55-1826b75f02c1) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:48.746453"], ["updated_at", "2016-12-07 20:13:48.746453"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:13:48.799060"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:48.750170"], ["updated_at", "2016-12-07 20:13:48.750170"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:13:48.804205"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:48.754166"], ["updated_at", "2016-12-07 20:13:48.754166"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:13:48.808660"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:48.810845"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a392264c-4268-482b-8d55-1826b75f02c1] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.0ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:48.821870"], ["updated_at", "2016-12-07 20:13:48.821870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-12-07 20:13:48.824470"], ["updated_at", "2016-12-07 20:13:48.824470"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.826454"], ["updated_at", "2016-12-07 20:13:48.826454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.828069"], ["updated_at", "2016-12-07 20:13:48.828069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-12-07 20:13:48.830584"], ["updated_at", "2016-12-07 20:13:48.830584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.832026"], ["updated_at", "2016-12-07 20:13:48.832026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-12-07 20:13:48.835033"], ["updated_at", "2016-12-07 20:13:48.835033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.836497"], ["updated_at", "2016-12-07 20:13:48.836497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-12-07 20:13:48.839239"], ["updated_at", "2016-12-07 20:13:48.839239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.840606"], ["updated_at", "2016-12-07 20:13:48.840606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:13:48.842700"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:48.844971"], ["updated_at", "2016-12-07 20:13:48.844971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: f787251f-8b2e-49b0-98ab-2bac4250138b) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:48.832026"], ["updated_at", "2016-12-07 20:13:48.832026"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.852670"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:48.836497"], ["updated_at", "2016-12-07 20:13:48.836497"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.858455"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:48.840606"], ["updated_at", "2016-12-07 20:13:48.840606"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.862701"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:48.864826"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f787251f-8b2e-49b0-98ab-2bac4250138b] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.68ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:13:48.872597"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-12-07 20:13:48.882598"], ["updated_at", "2016-12-07 20:13:48.882598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:48.885547"], ["updated_at", "2016-12-07 20:13:48.885547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-12-07 20:13:48.887840"], ["updated_at", "2016-12-07 20:13:48.887840"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.890152"], ["updated_at", "2016-12-07 20:13:48.890152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:48.891692"], ["updated_at", "2016-12-07 20:13:48.891692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-12-07 20:13:48.894033"], ["updated_at", "2016-12-07 20:13:48.894033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.895414"], ["updated_at", "2016-12-07 20:13:48.895414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 32' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 32"], ["created_at", "2016-12-07 20:13:48.897771"], ["updated_at", "2016-12-07 20:13:48.897771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.899137"], ["updated_at", "2016-12-07 20:13:48.899137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 33' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 33"], ["created_at", "2016-12-07 20:13:48.902098"], ["updated_at", "2016-12-07 20:13:48.902098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.903634"], ["updated_at", "2016-12-07 20:13:48.903634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.909485"], ["updated_at", "2016-12-07 20:13:48.909485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-12-07 20:13:48.911743"], ["updated_at", "2016-12-07 20:13:48.911743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:13:48.913508"], ["updated_at", "2016-12-07 20:13:48.913508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:13:48.917744"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:13:48.920113"], ["updated_at", "2016-12-07 20:13:48.920113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: d316afd4-8268-4e20-8b53-41e8f658b0d4) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:48.895414"], ["updated_at", "2016-12-07 20:13:48.895414"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.928133"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:13:48.899137"], ["updated_at", "2016-12-07 20:13:48.899137"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.932105"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:13:48.903634"], ["updated_at", "2016-12-07 20:13:48.903634"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:13:48.938495"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:13:48.941274"], ["updated_at", "2016-12-07 20:13:48.941274"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:13:48.942696"], ["updated_at", "2016-12-07 20:13:48.942696"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:13:48.943954"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d316afd4-8268-4e20-8b53-41e8f658b0d4] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.75ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 34' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 34"], ["created_at", "2016-12-07 20:13:48.956047"], ["updated_at", "2016-12-07 20:13:48.956047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 35"], ["created_at", "2016-12-07 20:13:48.966483"], ["updated_at", "2016-12-07 20:13:48.966483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 36' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 36"], ["created_at", "2016-12-07 20:13:48.971410"], ["updated_at", "2016-12-07 20:13:48.971410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 37' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 37"], ["created_at", "2016-12-07 20:13:48.975870"], ["updated_at", "2016-12-07 20:13:48.975870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:13:48.980834"], ["updated_at", "2016-12-07 20:13:48.980834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 32"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:48.982596"], ["updated_at", "2016-12-07 20:13:48.982596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:13:48.989299"], ["updated_at", "2016-12-07 20:13:48.989299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 33"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:13:48.991094"], ["updated_at", "2016-12-07 20:13:48.991094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 38"], ["created_at", "2016-12-07 20:13:48.995510"], ["updated_at", "2016-12-07 20:13:48.995510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 39' LIMIT 1 SQL (0.9ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 39"], ["created_at", "2016-12-07 20:13:48.999922"], ["updated_at", "2016-12-07 20:13:48.999922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-07 20:13:49.007498"], ["updated_at", "2016-12-07 20:13:49.007498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:49.134607"], ["updated_at", "2016-12-07 20:13:49.134607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:49.153417"], ["updated_at", "2016-12-07 20:13:49.153417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-12-07 20:13:49.161331"], ["updated_at", "2016-12-07 20:13:49.161331"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:49.165029"], ["updated_at", "2016-12-07 20:13:49.165029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:49.167406"], ["updated_at", "2016-12-07 20:13:49.167406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:13:49.169062"], ["updated_at", "2016-12-07 20:13:49.169062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 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.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:49.174197"], ["updated_at", "2016-12-07 20:13:49.174197"]]  (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 1 [["slug", "winterfell-news-14"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-12-07 20:13:49.177547"], ["updated_at", "2016-12-07 20:13:49.177547"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:49.179190"], ["updated_at", "2016-12-07 20:13:49.179190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:49.185935"], ["updated_at", "2016-12-07 20:13:49.185935"]]  (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 1 [["slug", "winterfell-news-15"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-12-07 20:13:49.188717"], ["updated_at", "2016-12-07 20:13:49.188717"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:49.190452"], ["updated_at", "2016-12-07 20:13:49.190452"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-12-07 20:13:49.192782"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-12-07 20:13:49.198352"], ["updated_at", "2016-12-07 20:13:49.198352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:49.203674"], ["updated_at", "2016-12-07 20:13:49.203674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-12-07 20:13:49.207501"], ["updated_at", "2016-12-07 20:13:49.207501"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:49.209644"], ["updated_at", "2016-12-07 20:13:49.209644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:49.211570"], ["updated_at", "2016-12-07 20:13:49.211570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:49.236169"], ["updated_at", "2016-12-07 20:13:49.236169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 40"], ["created_at", "2016-12-07 20:13:49.240016"], ["updated_at", "2016-12-07 20:13:49.240016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-12-07 20:13:49.311393"], ["updated_at", "2016-12-07 20:13:49.311393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:49.326339"], ["updated_at", "2016-12-07 20:13:49.326339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-12-07 20:13:49.329107"], ["updated_at", "2016-12-07 20:13:49.329107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:49.338176"], ["updated_at", "2016-12-07 20:13:49.338176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-17"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 17"], ["post_type_id", 1], ["slug", "winterfell-news-17"], ["created_at", "2016-12-07 20:13:49.341545"], ["updated_at", "2016-12-07 20:13:49.341545"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:49.343302"], ["updated_at", "2016-12-07 20:13:49.343302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:13:49.344953"], ["updated_at", "2016-12-07 20:13:49.344953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-12-07 20:13:49.347033"], ["updated_at", "2016-12-07 20:13:49.347033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:13:49.349039"], ["updated_at", "2016-12-07 20:13:49.349039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:49.358742"], ["updated_at", "2016-12-07 20:13:49.358742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-12-07 20:13:49.361379"], ["updated_at", "2016-12-07 20:13:49.361379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-12-07 20:13:49.366485"], ["updated_at", "2016-12-07 20:13:49.366485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-12-07 20:13:49.369262"], ["updated_at", "2016-12-07 20:13:49.369262"]] SQL (0.2ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:13:49.370101' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-12-07 20:13:49.373418"], ["updated_at", "2016-12-07 20:13:49.373418"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:13:49.374745' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:49.381408"], ["updated_at", "2016-12-07 20:13:49.381408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-12-07 20:13:49.385218"], ["updated_at", "2016-12-07 20:13:49.385218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:13:49.388556"], ["updated_at", "2016-12-07 20:13:49.388556"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:13:49.389518' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:49.393894"], ["updated_at", "2016-12-07 20:13:49.393894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-12-07 20:13:49.396650"], ["updated_at", "2016-12-07 20:13:49.396650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:13:49.398886"], ["updated_at", "2016-12-07 20:13:49.398886"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:13:49.399759' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:13:49.403932"], ["updated_at", "2016-12-07 20:13:49.403932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-12-07 20:13:49.406656"], ["updated_at", "2016-12-07 20:13:49.406656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:13:49.409200"], ["updated_at", "2016-12-07 20:13:49.409200"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:13:49.410017' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:49.414656"], ["updated_at", "2016-12-07 20:13:49.414656"]]  (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 1 [["slug", "winterfell-news-18"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 18"], ["post_type_id", 1], ["slug", "winterfell-news-18"], ["created_at", "2016-12-07 20:13:49.418907"], ["updated_at", "2016-12-07 20:13:49.418907"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:49.420685"], ["updated_at", "2016-12-07 20:13:49.420685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-12-07 20:13:49.439593"], ["updated_at", "2016-12-07 20:13:49.439593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:13:49.442534"], ["updated_at", "2016-12-07 20:13:49.442534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-19"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 19"], ["post_type_id", 1], ["slug", "winterfell-news-19"], ["created_at", "2016-12-07 20:13:49.444832"], ["updated_at", "2016-12-07 20:13:49.444832"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:49.446409"], ["updated_at", "2016-12-07 20:13:49.446409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:13:49.447971"], ["updated_at", "2016-12-07 20:13:49.447971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:13:49.450523"], ["updated_at", "2016-12-07 20:13:49.450523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.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.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';  (0.7ms) 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';  (0.6ms) 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.6ms) 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.2ms) 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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:14:23.260002"], ["updated_at", "2016-12-07 20:14:23.260002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (4.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (20.3ms) Completed 200 OK in 47ms (Views: 28.6ms | ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:14:23.322877"], ["updated_at", "2016-12-07 20:14:23.322877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (6.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (8.0ms) Completed 200 OK in 17ms (Views: 10.0ms | ActiveRecord: 0.6ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:14:23.348234"], ["updated_at", "2016-12-07 20:14:23.348234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (11.7ms) Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:14:23.372014"], ["updated_at", "2016-12-07 20:14:23.372014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.5ms) Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:14:23.392457"], ["updated_at", "2016-12-07 20:14:23.392457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) 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", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:14:23.410225"], ["updated_at", "2016-12-07 20:14:23.410225"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (12.7ms) Completed 200 OK in 25ms (Views: 16.5ms | ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:14:23.451967"], ["updated_at", "2016-12-07 20:14:23.451967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (2.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (10.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (11.7ms) Completed 200 OK in 25ms (Views: 13.1ms | ActiveRecord: 1.0ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:14:23.488901"], ["updated_at", "2016-12-07 20:14:23.488901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.0ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (22.8ms) Completed 200 OK in 26ms (Views: 24.3ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:14:23.527740"], ["updated_at", "2016-12-07 20:14:23.527740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:14:23.531020"], ["updated_at", "2016-12-07 20:14:23.531020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.3ms) Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:23.559089"], ["updated_at", "2016-12-07 20:14:23.559089"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 20:14:23.656253"], ["updated_at", "2016-12-07 20:14:23.656253"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:23.659886"], ["updated_at", "2016-12-07 20:14:23.659886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:23.662798"], ["updated_at", "2016-12-07 20:14:23.662798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 20:14:23.674760"], ["updated_at", "2016-12-07 20:14:23.674760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:14:23.677695"], ["updated_at", "2016-12-07 20:14:23.677695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 20:14:23.681592"], ["updated_at", "2016-12-07 20:14:23.681592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:14:23.683186"], ["updated_at", "2016-12-07 20:14:23.683186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 20:14:23.685586"], ["updated_at", "2016-12-07 20:14:23.685586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:14:23.687097"], ["updated_at", "2016-12-07 20:14:23.687097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:14:23.697568"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (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", 2]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 0.3ms | ActiveRecord: 1.3ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:23.719186"], ["updated_at", "2016-12-07 20:14:23.719186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 20:14:23.721647"], ["updated_at", "2016-12-07 20:14:23.721647"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:23.723174"], ["updated_at", "2016-12-07 20:14:23.723174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:23.724533"], ["updated_at", "2016-12-07 20:14:23.724533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 20:14:23.728363"], ["updated_at", "2016-12-07 20:14:23.728363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:14:23.730185"], ["updated_at", "2016-12-07 20:14:23.730185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 20:14:23.733182"], ["updated_at", "2016-12-07 20:14:23.733182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:14:23.734775"], ["updated_at", "2016-12-07 20:14:23.734775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 20:14:23.737300"], ["updated_at", "2016-12-07 20:14:23.737300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:14:23.738759"], ["updated_at", "2016-12-07 20:14:23.738759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:14:23.744368"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:14:23.747139"], ["updated_at", "2016-12-07 20:14:23.747139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 5c3a9a7d-81f8-4964-bd20-4e045c3890ac) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] 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 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:14:23.730185"], ["updated_at", "2016-12-07 20:14:23.730185"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:23.758933"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:14:23.734775"], ["updated_at", "2016-12-07 20:14:23.734775"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:23.766310"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:14:23.738759"], ["updated_at", "2016-12-07 20:14:23.738759"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:23.771134"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:14:23.773536"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5c3a9a7d-81f8-4964-bd20-4e045c3890ac] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.38ms Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:14:23.784919"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (4.2ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (5.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (7.3ms) Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (4.6ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (35.6ms) Completed 200 OK in 44ms (Views: 0.4ms | ActiveRecord: 0.9ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:23.835825"], ["updated_at", "2016-12-07 20:14:23.835825"]]  (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 1 [["slug", "winterfell-news-3"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 20:14:23.839204"], ["updated_at", "2016-12-07 20:14:23.839204"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:23.841343"], ["updated_at", "2016-12-07 20:14:23.841343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:23.842985"], ["updated_at", "2016-12-07 20:14:23.842985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 20:14:23.845948"], ["updated_at", "2016-12-07 20:14:23.845948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:14:23.847805"], ["updated_at", "2016-12-07 20:14:23.847805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 20:14:23.850470"], ["updated_at", "2016-12-07 20:14:23.850470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:14:23.851825"], ["updated_at", "2016-12-07 20:14:23.851825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 20:14:23.854096"], ["updated_at", "2016-12-07 20:14:23.854096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:14:23.855419"], ["updated_at", "2016-12-07 20:14:23.855419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:14:23.858529"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:14:23.861742"], ["updated_at", "2016-12-07 20:14:23.861742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 1fddbed4-1aac-4d5b-84ee-c042beae1f22) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:14:23.847805"], ["updated_at", "2016-12-07 20:14:23.847805"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:23.872470"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:14:23.851825"], ["updated_at", "2016-12-07 20:14:23.851825"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:23.876835"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:14:23.855419"], ["updated_at", "2016-12-07 20:14:23.855419"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:23.882955"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:14:23.885160"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1fddbed4-1aac-4d5b-84ee-c042beae1f22] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.86ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:14:23.895478"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:14:23.898307"], ["updated_at", "2016-12-07 20:14:23.898307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 78ee03f7-d348-482f-b45a-4fa9bae39a11) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:14:23.847805"], ["updated_at", "2016-12-07 20:14:23.847805"]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:14:23.906934"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:14:23.851825"], ["updated_at", "2016-12-07 20:14:23.851825"]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:14:23.912064"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:14:23.855419"], ["updated_at", "2016-12-07 20:14:23.855419"]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:14:23.917785"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:14:23.920443"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [78ee03f7-d348-482f-b45a-4fa9bae39a11] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.5ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (6.4ms) Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 2.3ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-12-07 20:14:23.942614"], ["updated_at", "2016-12-07 20:14:23.942614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:14:23.946998"], ["updated_at", "2016-12-07 20:14:23.946998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-12-07 20:14:23.961006"], ["updated_at", "2016-12-07 20:14:23.961006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:14:23.963380"], ["updated_at", "2016-12-07 20:14:23.963380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-12-07 20:14:23.974301"], ["updated_at", "2016-12-07 20:14:23.974301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:14:23.976964"], ["updated_at", "2016-12-07 20:14:23.976964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-12-07 20:14:23.987768"], ["updated_at", "2016-12-07 20:14:23.987768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.4ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-12-07 20:14:23.999979"], ["updated_at", "2016-12-07 20:14:23.999979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-12-07 20:14:24.042477"], ["updated_at", "2016-12-07 20:14:24.042477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (1.0ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.6ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.4ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-12-07 20:14:24.061984"], ["updated_at", "2016-12-07 20:14:24.061984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:14:24.067909"], ["updated_at", "2016-12-07 20:14:24.067909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 409 Conflict in 7ms (Views: 4.0ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:14:24.086082"], ["updated_at", "2016-12-07 20:14:24.086082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 409 Conflict in 3ms (Views: 0.8ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-12-07 20:14:24.100150"], ["updated_at", "2016-12-07 20:14:24.100150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-12-07 20:14:24.111400"], ["updated_at", "2016-12-07 20:14:24.111400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-12-07 20:14:24.140608"], ["updated_at", "2016-12-07 20:14:24.140608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 409 Conflict in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-12-07 20:14:24.152758"], ["updated_at", "2016-12-07 20:14:24.152758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-12-07 20:14:24.160062"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:14:24.167892"], ["updated_at", "2016-12-07 20:14:24.167892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-12-07 20:14:24.171494"], ["updated_at", "2016-12-07 20:14:24.171494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:14:24.183021"], ["updated_at", "2016-12-07 20:14:24.183021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-12-07 20:14:24.186999"], ["updated_at", "2016-12-07 20:14:24.186999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 409 Conflict in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-12-07 20:14:24.200706"], ["updated_at", "2016-12-07 20:14:24.200706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-12-07 20:14:24.210297"], ["updated_at", "2016-12-07 20:14:24.210297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.0ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:24.224298"], ["updated_at", "2016-12-07 20:14:24.224298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 20:14:24.226983"], ["updated_at", "2016-12-07 20:14:24.226983"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.228574"], ["updated_at", "2016-12-07 20:14:24.228574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.230378"], ["updated_at", "2016-12-07 20:14:24.230378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-07 20:14:24.233804"], ["updated_at", "2016-12-07 20:14:24.233804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.235944"], ["updated_at", "2016-12-07 20:14:24.235944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-07 20:14:24.238702"], ["updated_at", "2016-12-07 20:14:24.238702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.240060"], ["updated_at", "2016-12-07 20:14:24.240060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-07 20:14:24.242383"], ["updated_at", "2016-12-07 20:14:24.242383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.243738"], ["updated_at", "2016-12-07 20:14:24.243738"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:14:24.248704"], ["updated_at", "2016-12-07 20:14:24.248704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:14:24.235944"], ["updated_at", "2016-12-07 20:14:24.235944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.254820"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:14:24.240060"], ["updated_at", "2016-12-07 20:14:24.240060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.258763"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:14:24.243738"], ["updated_at", "2016-12-07 20:14:24.243738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.263337"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:14:24.265548"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:24.274334"], ["updated_at", "2016-12-07 20:14:24.274334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-12-07 20:14:24.276781"], ["updated_at", "2016-12-07 20:14:24.276781"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.278998"], ["updated_at", "2016-12-07 20:14:24.278998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.280589"], ["updated_at", "2016-12-07 20:14:24.280589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:14:24.286548"], ["updated_at", "2016-12-07 20:14:24.286548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:14:24.299088"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:24.307034"], ["updated_at", "2016-12-07 20:14:24.307034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-12-07 20:14:24.310787"], ["updated_at", "2016-12-07 20:14:24.310787"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.314247"], ["updated_at", "2016-12-07 20:14:24.314247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.315902"], ["updated_at", "2016-12-07 20:14:24.315902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-12-07 20:14:24.318228"], ["updated_at", "2016-12-07 20:14:24.318228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.319639"], ["updated_at", "2016-12-07 20:14:24.319639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-12-07 20:14:24.321985"], ["updated_at", "2016-12-07 20:14:24.321985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.323288"], ["updated_at", "2016-12-07 20:14:24.323288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-12-07 20:14:24.327357"], ["updated_at", "2016-12-07 20:14:24.327357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.328969"], ["updated_at", "2016-12-07 20:14:24.328969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:14:24.330921"], ["updated_at", "2016-12-07 20:14:24.330921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:14:24.319639"], ["updated_at", "2016-12-07 20:14:24.319639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.337773"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:14:24.323288"], ["updated_at", "2016-12-07 20:14:24.323288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.341840"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:14:24.328969"], ["updated_at", "2016-12-07 20:14:24.328969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.345806"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:14:24.347915"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:24.357393"], ["updated_at", "2016-12-07 20:14:24.357393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-12-07 20:14:24.365206"], ["updated_at", "2016-12-07 20:14:24.365206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:14:24.366800"], ["updated_at", "2016-12-07 20:14:24.366800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-12-07 20:14:24.369216"], ["updated_at", "2016-12-07 20:14:24.369216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:14:24.370442"], ["updated_at", "2016-12-07 20:14:24.370442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-12-07 20:14:24.372691"], ["updated_at", "2016-12-07 20:14:24.372691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:14:24.374029"], ["updated_at", "2016-12-07 20:14:24.374029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:14:24.384769"], ["updated_at", "2016-12-07 20:14:24.384769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:14:24.388525"], ["updated_at", "2016-12-07 20:14:24.388525"]]  (0.0ms) RELEASE SAVEPOINT active_record_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 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:14:24.392428"], ["updated_at", "2016-12-07 20:14:24.392428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:24.399304"], ["updated_at", "2016-12-07 20:14:24.399304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-12-07 20:14:24.402103"], ["updated_at", "2016-12-07 20:14:24.402103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:14:24.403430"], ["updated_at", "2016-12-07 20:14:24.403430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-12-07 20:14:24.405654"], ["updated_at", "2016-12-07 20:14:24.405654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:14:24.407120"], ["updated_at", "2016-12-07 20:14:24.407120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-12-07 20:14:24.409348"], ["updated_at", "2016-12-07 20:14:24.409348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:14:24.410743"], ["updated_at", "2016-12-07 20:14:24.410743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-12-07 20:14:24.414524"], ["updated_at", "2016-12-07 20:14:24.414524"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.416240"], ["updated_at", "2016-12-07 20:14:24.416240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:14:24.422892"], ["updated_at", "2016-12-07 20:14:24.422892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:14:24.426728"], ["updated_at", "2016-12-07 20:14:24.426728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:14:24.431210"], ["updated_at", "2016-12-07 20:14:24.431210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:24.439949"], ["updated_at", "2016-12-07 20:14:24.439949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-12-07 20:14:24.448825"], ["updated_at", "2016-12-07 20:14:24.448825"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.450621"], ["updated_at", "2016-12-07 20:14:24.450621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:24.467209"], ["updated_at", "2016-12-07 20:14:24.467209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-12-07 20:14:24.470112"], ["updated_at", "2016-12-07 20:14:24.470112"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.471780"], ["updated_at", "2016-12-07 20:14:24.471780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.474060"], ["updated_at", "2016-12-07 20:14:24.474060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.8ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-12-07 20:14:24.479348"], ["updated_at", "2016-12-07 20:14:24.479348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.481559"], ["updated_at", "2016-12-07 20:14:24.481559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-12-07 20:14:24.484162"], ["updated_at", "2016-12-07 20:14:24.484162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.485522"], ["updated_at", "2016-12-07 20:14:24.485522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-12-07 20:14:24.487899"], ["updated_at", "2016-12-07 20:14:24.487899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.489284"], ["updated_at", "2016-12-07 20:14:24.489284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:14:24.491479"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:14:24.494026"], ["updated_at", "2016-12-07 20:14:24.494026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ce877166-e8f8-4e47-b4d9-f55f26a39ec5) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:14:24.481559"], ["updated_at", "2016-12-07 20:14:24.481559"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.504277"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:14:24.485522"], ["updated_at", "2016-12-07 20:14:24.485522"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.510886"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:14:24.489284"], ["updated_at", "2016-12-07 20:14:24.489284"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.515448"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:14:24.517650"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ce877166-e8f8-4e47-b4d9-f55f26a39ec5] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.56ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:24.532566"], ["updated_at", "2016-12-07 20:14:24.532566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-12-07 20:14:24.535320"], ["updated_at", "2016-12-07 20:14:24.535320"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.537432"], ["updated_at", "2016-12-07 20:14:24.537432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.539213"], ["updated_at", "2016-12-07 20:14:24.539213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-12-07 20:14:24.542559"], ["updated_at", "2016-12-07 20:14:24.542559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.544527"], ["updated_at", "2016-12-07 20:14:24.544527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-12-07 20:14:24.548029"], ["updated_at", "2016-12-07 20:14:24.548029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.549600"], ["updated_at", "2016-12-07 20:14:24.549600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-12-07 20:14:24.552349"], ["updated_at", "2016-12-07 20:14:24.552349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.553909"], ["updated_at", "2016-12-07 20:14:24.553909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:14:24.556125"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:14:24.558513"], ["updated_at", "2016-12-07 20:14:24.558513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 3420d80a-3785-40a7-b68d-bc203c7e9c98) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:14:24.544527"], ["updated_at", "2016-12-07 20:14:24.544527"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.567648"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:14:24.549600"], ["updated_at", "2016-12-07 20:14:24.549600"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.573253"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:14:24.553909"], ["updated_at", "2016-12-07 20:14:24.553909"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.579029"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:14:24.582252"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3420d80a-3785-40a7-b68d-bc203c7e9c98] Performed Pulitzer::CloneVersionJob from Inline(default) in 34.25ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:14:24.598174"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:14:24.600679"], ["updated_at", "2016-12-07 20:14:24.600679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c33148f1-991d-41f1-9f5f-d89b4aba20a4) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:14:24.544527"], ["updated_at", "2016-12-07 20:14:24.544527"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:14:24.608937"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:14:24.549600"], ["updated_at", "2016-12-07 20:14:24.549600"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:14:24.613880"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:14:24.553909"], ["updated_at", "2016-12-07 20:14:24.553909"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:14:24.618002"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:14:24.620204"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c33148f1-991d-41f1-9f5f-d89b4aba20a4] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.88ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:24.633865"], ["updated_at", "2016-12-07 20:14:24.633865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-12-07 20:14:24.637264"], ["updated_at", "2016-12-07 20:14:24.637264"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.639398"], ["updated_at", "2016-12-07 20:14:24.639398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.641172"], ["updated_at", "2016-12-07 20:14:24.641172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-12-07 20:14:24.643846"], ["updated_at", "2016-12-07 20:14:24.643846"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.646150"], ["updated_at", "2016-12-07 20:14:24.646150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-12-07 20:14:24.648798"], ["updated_at", "2016-12-07 20:14:24.648798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.650273"], ["updated_at", "2016-12-07 20:14:24.650273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-12-07 20:14:24.652995"], ["updated_at", "2016-12-07 20:14:24.652995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.654507"], ["updated_at", "2016-12-07 20:14:24.654507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:14:24.656660"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:14:24.658969"], ["updated_at", "2016-12-07 20:14:24.658969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 399aa59e-ecc2-48f9-a721-440d73e14e0d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:14:24.646150"], ["updated_at", "2016-12-07 20:14:24.646150"]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.670825"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:14:24.650273"], ["updated_at", "2016-12-07 20:14:24.650273"]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.675421"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:14:24.654507"], ["updated_at", "2016-12-07 20:14:24.654507"]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.681523"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:14:24.683828"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [399aa59e-ecc2-48f9-a721-440d73e14e0d] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.88ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:14:24.689748"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-12-07 20:14:24.699199"], ["updated_at", "2016-12-07 20:14:24.699199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:24.701885"], ["updated_at", "2016-12-07 20:14:24.701885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-12-07 20:14:24.704076"], ["updated_at", "2016-12-07 20:14:24.704076"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.705693"], ["updated_at", "2016-12-07 20:14:24.705693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.707402"], ["updated_at", "2016-12-07 20:14:24.707402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-12-07 20:14:24.709738"], ["updated_at", "2016-12-07 20:14:24.709738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.711152"], ["updated_at", "2016-12-07 20:14:24.711152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 32' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 32"], ["created_at", "2016-12-07 20:14:24.713493"], ["updated_at", "2016-12-07 20:14:24.713493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.714834"], ["updated_at", "2016-12-07 20:14:24.714834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 33' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 33"], ["created_at", "2016-12-07 20:14:24.717082"], ["updated_at", "2016-12-07 20:14:24.717082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.718410"], ["updated_at", "2016-12-07 20:14:24.718410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.724107"], ["updated_at", "2016-12-07 20:14:24.724107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-12-07 20:14:24.726197"], ["updated_at", "2016-12-07 20:14:24.726197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:14:24.727935"], ["updated_at", "2016-12-07 20:14:24.727935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:14:24.732009"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:14:24.734858"], ["updated_at", "2016-12-07 20:14:24.734858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 762cde7d-714a-4125-aa80-4b8386b38f0f) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:14:24.711152"], ["updated_at", "2016-12-07 20:14:24.711152"]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.742827"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:14:24.714834"], ["updated_at", "2016-12-07 20:14:24.714834"]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.749054"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:14:24.718410"], ["updated_at", "2016-12-07 20:14:24.718410"]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:14:24.753353"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:14:24.756737"], ["updated_at", "2016-12-07 20:14:24.756737"]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:14:24.758441"], ["updated_at", "2016-12-07 20:14:24.758441"]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:14:24.760102"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [762cde7d-714a-4125-aa80-4b8386b38f0f] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.91ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 34' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 34"], ["created_at", "2016-12-07 20:14:24.772209"], ["updated_at", "2016-12-07 20:14:24.772209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 35"], ["created_at", "2016-12-07 20:14:24.782212"], ["updated_at", "2016-12-07 20:14:24.782212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 36' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 36"], ["created_at", "2016-12-07 20:14:24.786566"], ["updated_at", "2016-12-07 20:14:24.786566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 37' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 37"], ["created_at", "2016-12-07 20:14:24.790746"], ["updated_at", "2016-12-07 20:14:24.790746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:14:24.796971"], ["updated_at", "2016-12-07 20:14:24.796971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 32"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:14:24.798912"], ["updated_at", "2016-12-07 20:14:24.798912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:14:24.804824"], ["updated_at", "2016-12-07 20:14:24.804824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 33"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:14:24.807378"], ["updated_at", "2016-12-07 20:14:24.807378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 38"], ["created_at", "2016-12-07 20:14:24.814886"], ["updated_at", "2016-12-07 20:14:24.814886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 39' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 39"], ["created_at", "2016-12-07 20:14:24.820128"], ["updated_at", "2016-12-07 20:14:24.820128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-07 20:14:24.825580"], ["updated_at", "2016-12-07 20:14:24.825580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:24.952056"], ["updated_at", "2016-12-07 20:14:24.952056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:24.967972"], ["updated_at", "2016-12-07 20:14:24.967972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-12-07 20:14:24.970713"], ["updated_at", "2016-12-07 20:14:24.970713"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.972598"], ["updated_at", "2016-12-07 20:14:24.972598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.974693"], ["updated_at", "2016-12-07 20:14:24.974693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:14:24.976227"], ["updated_at", "2016-12-07 20:14:24.976227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:24.986233"], ["updated_at", "2016-12-07 20:14:24.986233"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-12-07 20:14:24.992697"], ["updated_at", "2016-12-07 20:14:24.992697"]] SQL (0.5ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:24.994441"], ["updated_at", "2016-12-07 20:14:24.994441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:25.002450"], ["updated_at", "2016-12-07 20:14:25.002450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-12-07 20:14:25.005145"], ["updated_at", "2016-12-07 20:14:25.005145"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:25.006754"], ["updated_at", "2016-12-07 20:14:25.006754"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-12-07 20:14:25.009114"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-12-07 20:14:25.017114"], ["updated_at", "2016-12-07 20:14:25.017114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:25.019809"], ["updated_at", "2016-12-07 20:14:25.019809"]]  (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 1 [["slug", "winterfell-news-16"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-12-07 20:14:25.022455"], ["updated_at", "2016-12-07 20:14:25.022455"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:25.024108"], ["updated_at", "2016-12-07 20:14:25.024108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:25.025640"], ["updated_at", "2016-12-07 20:14:25.025640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:25.050538"], ["updated_at", "2016-12-07 20:14:25.050538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 40"], ["created_at", "2016-12-07 20:14:25.054439"], ["updated_at", "2016-12-07 20:14:25.054439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-12-07 20:14:25.112699"], ["updated_at", "2016-12-07 20:14:25.112699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:14:25.124757"], ["updated_at", "2016-12-07 20:14:25.124757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-12-07 20:14:25.127180"], ["updated_at", "2016-12-07 20:14:25.127180"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:25.138785"], ["updated_at", "2016-12-07 20:14:25.138785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-17"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 17"], ["post_type_id", 1], ["slug", "winterfell-news-17"], ["created_at", "2016-12-07 20:14:25.141540"], ["updated_at", "2016-12-07 20:14:25.141540"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:25.143222"], ["updated_at", "2016-12-07 20:14:25.143222"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:14:25.147256"], ["updated_at", "2016-12-07 20:14:25.147256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-12-07 20:14:25.151092"], ["updated_at", "2016-12-07 20:14:25.151092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:14:25.153359"], ["updated_at", "2016-12-07 20:14:25.153359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:14:25.161438"], ["updated_at", "2016-12-07 20:14:25.161438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-12-07 20:14:25.164107"], ["updated_at", "2016-12-07 20:14:25.164107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-12-07 20:14:25.169869"], ["updated_at", "2016-12-07 20:14:25.169869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-12-07 20:14:25.173670"], ["updated_at", "2016-12-07 20:14:25.173670"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:14:25.174893' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-12-07 20:14:25.177122"], ["updated_at", "2016-12-07 20:14:25.177122"]] SQL (0.2ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:14:25.178547' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:14:25.187173"], ["updated_at", "2016-12-07 20:14:25.187173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-12-07 20:14:25.189634"], ["updated_at", "2016-12-07 20:14:25.189634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:14:25.191993"], ["updated_at", "2016-12-07 20:14:25.191993"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:14:25.192935' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:14:25.197956"], ["updated_at", "2016-12-07 20:14:25.197956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-12-07 20:14:25.200564"], ["updated_at", "2016-12-07 20:14:25.200564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:14:25.202912"], ["updated_at", "2016-12-07 20:14:25.202912"]] SQL (0.2ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:14:25.203576' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:14:25.215512"], ["updated_at", "2016-12-07 20:14:25.215512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-12-07 20:14:25.217890"], ["updated_at", "2016-12-07 20:14:25.217890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:14:25.220696"], ["updated_at", "2016-12-07 20:14:25.220696"]] SQL (0.3ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:14:25.222073' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:25.227322"], ["updated_at", "2016-12-07 20:14:25.227322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-18"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 18"], ["post_type_id", 1], ["slug", "winterfell-news-18"], ["created_at", "2016-12-07 20:14:25.232693"], ["updated_at", "2016-12-07 20:14:25.232693"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:25.234883"], ["updated_at", "2016-12-07 20:14:25.234883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-12-07 20:14:25.254526"], ["updated_at", "2016-12-07 20:14:25.254526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:14:25.257593"], ["updated_at", "2016-12-07 20:14:25.257593"]]  (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 1 [["slug", "winterfell-news-19"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 19"], ["post_type_id", 1], ["slug", "winterfell-news-19"], ["created_at", "2016-12-07 20:14:25.260475"], ["updated_at", "2016-12-07 20:14:25.260475"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:25.263079"], ["updated_at", "2016-12-07 20:14:25.263079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:14:25.264906"], ["updated_at", "2016-12-07 20:14:25.264906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:14:25.267060"], ["updated_at", "2016-12-07 20:14:25.267060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.3ms) 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.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';  (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.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';  (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';  (0.7ms) 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.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (0.6ms) 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.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:17:35.039267"], ["updated_at", "2016-12-07 20:17:35.039267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (26.1ms) Completed 200 OK in 60ms (Views: 37.8ms | ActiveRecord: 0.4ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:17:35.115458"], ["updated_at", "2016-12-07 20:17:35.115458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.9ms) Completed 200 OK in 15ms (Views: 9.4ms | ActiveRecord: 0.6ms) Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:17:35.138817"], ["updated_at", "2016-12-07 20:17:35.138817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (10.2ms) Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:17:35.160749"], ["updated_at", "2016-12-07 20:17:35.160749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.7ms) Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:17:35.180525"], ["updated_at", "2016-12-07 20:17:35.180525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:17:35.199079"], ["updated_at", "2016-12-07 20:17:35.199079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (12.6ms) Completed 200 OK in 26ms (Views: 17.0ms | ActiveRecord: 0.7ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:17:35.241213"], ["updated_at", "2016-12-07 20:17:35.241213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (9.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (11.1ms) Completed 200 OK in 23ms (Views: 12.4ms | ActiveRecord: 1.0ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:17:35.276049"], ["updated_at", "2016-12-07 20:17:35.276049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (14.4ms) Completed 200 OK in 17ms (Views: 16.1ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:17:35.315382"], ["updated_at", "2016-12-07 20:17:35.315382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:17:35.318509"], ["updated_at", "2016-12-07 20:17:35.318509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (4.8ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:35.346363"], ["updated_at", "2016-12-07 20:17:35.346363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 20:17:35.454344"], ["updated_at", "2016-12-07 20:17:35.454344"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:35.458935"], ["updated_at", "2016-12-07 20:17:35.458935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:35.462464"], ["updated_at", "2016-12-07 20:17:35.462464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 20:17:35.475161"], ["updated_at", "2016-12-07 20:17:35.475161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:17:35.478017"], ["updated_at", "2016-12-07 20:17:35.478017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 20:17:35.481222"], ["updated_at", "2016-12-07 20:17:35.481222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:17:35.484064"], ["updated_at", "2016-12-07 20:17:35.484064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 20:17:35.487194"], ["updated_at", "2016-12-07 20:17:35.487194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:17:35.488931"], ["updated_at", "2016-12-07 20:17:35.488931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:17:35.501454"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (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", 2]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 28ms (Views: 0.2ms | ActiveRecord: 1.8ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:35.529373"], ["updated_at", "2016-12-07 20:17:35.529373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 20:17:35.532547"], ["updated_at", "2016-12-07 20:17:35.532547"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:35.534289"], ["updated_at", "2016-12-07 20:17:35.534289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:35.536193"], ["updated_at", "2016-12-07 20:17:35.536193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 20:17:35.540934"], ["updated_at", "2016-12-07 20:17:35.540934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:17:35.542768"], ["updated_at", "2016-12-07 20:17:35.542768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 20:17:35.545444"], ["updated_at", "2016-12-07 20:17:35.545444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:17:35.547040"], ["updated_at", "2016-12-07 20:17:35.547040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 20:17:35.549907"], ["updated_at", "2016-12-07 20:17:35.549907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:17:35.552011"], ["updated_at", "2016-12-07 20:17:35.552011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:17:35.558437"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:17:35.561734"], ["updated_at", "2016-12-07 20:17:35.561734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 3d3fd7ea-69ed-4cd1-987f-6f1bacae5388) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:17:35.542768"], ["updated_at", "2016-12-07 20:17:35.542768"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:35.578053"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:17:35.547040"], ["updated_at", "2016-12-07 20:17:35.547040"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:35.585003"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:17:35.552011"], ["updated_at", "2016-12-07 20:17:35.552011"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:35.591011"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:17:35.593700"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3d3fd7ea-69ed-4cd1-987f-6f1bacae5388] Performed Pulitzer::CloneVersionJob from Inline(default) in 30.2ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:17:35.607508"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.3ms) Pulitzer::PostTag Load (0.2ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (5.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (7.3ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.9ms) Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (8.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (36.2ms) Completed 200 OK in 47ms (Views: 0.4ms | ActiveRecord: 1.3ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:35.659858"], ["updated_at", "2016-12-07 20:17:35.659858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 20:17:35.662859"], ["updated_at", "2016-12-07 20:17:35.662859"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:35.664662"], ["updated_at", "2016-12-07 20:17:35.664662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:35.666564"], ["updated_at", "2016-12-07 20:17:35.666564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 20:17:35.669695"], ["updated_at", "2016-12-07 20:17:35.669695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:17:35.671274"], ["updated_at", "2016-12-07 20:17:35.671274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 20:17:35.674258"], ["updated_at", "2016-12-07 20:17:35.674258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:17:35.675747"], ["updated_at", "2016-12-07 20:17:35.675747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 20:17:35.678047"], ["updated_at", "2016-12-07 20:17:35.678047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:17:35.679469"], ["updated_at", "2016-12-07 20:17:35.679469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:17:35.682677"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:17:35.685454"], ["updated_at", "2016-12-07 20:17:35.685454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 3f58c760-a7e4-48ea-9542-33d8356dc9b6) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:17:35.671274"], ["updated_at", "2016-12-07 20:17:35.671274"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:35.694124"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:17:35.675747"], ["updated_at", "2016-12-07 20:17:35.675747"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:35.701659"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:17:35.679469"], ["updated_at", "2016-12-07 20:17:35.679469"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:35.707004"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:17:35.710363"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3f58c760-a7e4-48ea-9542-33d8356dc9b6] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.6ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:17:35.722122"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:17:35.725099"], ["updated_at", "2016-12-07 20:17:35.725099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: dcf84ee8-95a0-4b6b-b765-6a2f31ffa525) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:17:35.671274"], ["updated_at", "2016-12-07 20:17:35.671274"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:17:35.733297"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:17:35.675747"], ["updated_at", "2016-12-07 20:17:35.675747"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:17:35.738975"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:17:35.679469"], ["updated_at", "2016-12-07 20:17:35.679469"]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:17:35.743885"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:17:35.746092"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [dcf84ee8-95a0-4b6b-b765-6a2f31ffa525] Performed Pulitzer::CloneVersionJob from Inline(default) in 22.04ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (7.5ms) Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 2.2ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-12-07 20:17:35.769918"], ["updated_at", "2016-12-07 20:17:35.769918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:17:35.774208"], ["updated_at", "2016-12-07 20:17:35.774208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-12-07 20:17:35.787728"], ["updated_at", "2016-12-07 20:17:35.787728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:17:35.790239"], ["updated_at", "2016-12-07 20:17:35.790239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-12-07 20:17:35.801437"], ["updated_at", "2016-12-07 20:17:35.801437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:17:35.804517"], ["updated_at", "2016-12-07 20:17:35.804517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.4ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.3ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-12-07 20:17:35.818078"], ["updated_at", "2016-12-07 20:17:35.818078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-12-07 20:17:35.831758"], ["updated_at", "2016-12-07 20:17:35.831758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.4ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.4ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-12-07 20:17:35.888372"], ["updated_at", "2016-12-07 20:17:35.888372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 1.9ms | ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (5.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-12-07 20:17:35.906478"], ["updated_at", "2016-12-07 20:17:35.906478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:17:35.915254"], ["updated_at", "2016-12-07 20:17:35.915254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 409 Conflict in 7ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:17:35.932399"], ["updated_at", "2016-12-07 20:17:35.932399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 4ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (2.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-12-07 20:17:35.945421"], ["updated_at", "2016-12-07 20:17:35.945421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.4ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-12-07 20:17:35.959344"], ["updated_at", "2016-12-07 20:17:35.959344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.7ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-12-07 20:17:35.992397"], ["updated_at", "2016-12-07 20:17:35.992397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 409 Conflict in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.9ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-12-07 20:17:36.004394"], ["updated_at", "2016-12-07 20:17:36.004394"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-12-07 20:17:36.015218"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:17:36.023247"], ["updated_at", "2016-12-07 20:17:36.023247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-12-07 20:17:36.028443"], ["updated_at", "2016-12-07 20:17:36.028443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:17:36.040535"], ["updated_at", "2016-12-07 20:17:36.040535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-12-07 20:17:36.045149"], ["updated_at", "2016-12-07 20:17:36.045149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (1.3ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-12-07 20:17:36.060059"], ["updated_at", "2016-12-07 20:17:36.060059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-12-07 20:17:36.072154"], ["updated_at", "2016-12-07 20:17:36.072154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.2ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:36.088384"], ["updated_at", "2016-12-07 20:17:36.088384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 20:17:36.094214"], ["updated_at", "2016-12-07 20:17:36.094214"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.096968"], ["updated_at", "2016-12-07 20:17:36.096968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.098723"], ["updated_at", "2016-12-07 20:17:36.098723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-07 20:17:36.101885"], ["updated_at", "2016-12-07 20:17:36.101885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.103551"], ["updated_at", "2016-12-07 20:17:36.103551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-07 20:17:36.107566"], ["updated_at", "2016-12-07 20:17:36.107566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.109255"], ["updated_at", "2016-12-07 20:17:36.109255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-07 20:17:36.112588"], ["updated_at", "2016-12-07 20:17:36.112588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.114278"], ["updated_at", "2016-12-07 20:17:36.114278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:17:36.118416"], ["updated_at", "2016-12-07 20:17:36.118416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:17:36.103551"], ["updated_at", "2016-12-07 20:17:36.103551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.127842"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:17:36.109255"], ["updated_at", "2016-12-07 20:17:36.109255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.132724"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:17:36.114278"], ["updated_at", "2016-12-07 20:17:36.114278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.138695"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:17:36.141756"], ["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (2.0ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:36.157957"], ["updated_at", "2016-12-07 20:17:36.157957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-12-07 20:17:36.160793"], ["updated_at", "2016-12-07 20:17:36.160793"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.162442"], ["updated_at", "2016-12-07 20:17:36.162442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.164142"], ["updated_at", "2016-12-07 20:17:36.164142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:17:36.172804"], ["updated_at", "2016-12-07 20:17:36.172804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.2ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.6ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:17:36.193011"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:36.203574"], ["updated_at", "2016-12-07 20:17:36.203574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-12-07 20:17:36.208190"], ["updated_at", "2016-12-07 20:17:36.208190"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.210525"], ["updated_at", "2016-12-07 20:17:36.210525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.212416"], ["updated_at", "2016-12-07 20:17:36.212416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-12-07 20:17:36.216158"], ["updated_at", "2016-12-07 20:17:36.216158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.217933"], ["updated_at", "2016-12-07 20:17:36.217933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-12-07 20:17:36.223129"], ["updated_at", "2016-12-07 20:17:36.223129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.226314"], ["updated_at", "2016-12-07 20:17:36.226314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-12-07 20:17:36.229479"], ["updated_at", "2016-12-07 20:17:36.229479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.231096"], ["updated_at", "2016-12-07 20:17:36.231096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:17:36.232946"], ["updated_at", "2016-12-07 20:17:36.232946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:17:36.217933"], ["updated_at", "2016-12-07 20:17:36.217933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.242438"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:17:36.226314"], ["updated_at", "2016-12-07 20:17:36.226314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.249111"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:17:36.231096"], ["updated_at", "2016-12-07 20:17:36.231096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.253651"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:17:36.257832"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:36.267521"], ["updated_at", "2016-12-07 20:17:36.267521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-12-07 20:17:36.276986"], ["updated_at", "2016-12-07 20:17:36.276986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:17:36.279043"], ["updated_at", "2016-12-07 20:17:36.279043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-12-07 20:17:36.281899"], ["updated_at", "2016-12-07 20:17:36.281899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:17:36.283209"], ["updated_at", "2016-12-07 20:17:36.283209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-12-07 20:17:36.286218"], ["updated_at", "2016-12-07 20:17:36.286218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:17:36.287781"], ["updated_at", "2016-12-07 20:17:36.287781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:17:36.308094"], ["updated_at", "2016-12-07 20:17:36.308094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:17:36.312034"], ["updated_at", "2016-12-07 20:17:36.312034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:17:36.318437"], ["updated_at", "2016-12-07 20:17:36.318437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:36.325039"], ["updated_at", "2016-12-07 20:17:36.325039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-12-07 20:17:36.328683"], ["updated_at", "2016-12-07 20:17:36.328683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:17:36.330411"], ["updated_at", "2016-12-07 20:17:36.330411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-12-07 20:17:36.333200"], ["updated_at", "2016-12-07 20:17:36.333200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:17:36.334665"], ["updated_at", "2016-12-07 20:17:36.334665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-12-07 20:17:36.337314"], ["updated_at", "2016-12-07 20:17:36.337314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:17:36.338676"], ["updated_at", "2016-12-07 20:17:36.338676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-12-07 20:17:36.344243"], ["updated_at", "2016-12-07 20:17:36.344243"]] SQL (0.7ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.346673"], ["updated_at", "2016-12-07 20:17:36.346673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (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 1 [["id", 1]] SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:17:36.356501"], ["updated_at", "2016-12-07 20:17:36.356501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:17:36.364859"], ["updated_at", "2016-12-07 20:17:36.364859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:17:36.369107"], ["updated_at", "2016-12-07 20:17:36.369107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.5ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:36.379146"], ["updated_at", "2016-12-07 20:17:36.379146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-12-07 20:17:36.387379"], ["updated_at", "2016-12-07 20:17:36.387379"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.388949"], ["updated_at", "2016-12-07 20:17:36.388949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:36.413822"], ["updated_at", "2016-12-07 20:17:36.413822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-12-07 20:17:36.417828"], ["updated_at", "2016-12-07 20:17:36.417828"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.419968"], ["updated_at", "2016-12-07 20:17:36.419968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.422105"], ["updated_at", "2016-12-07 20:17:36.422105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-12-07 20:17:36.427269"], ["updated_at", "2016-12-07 20:17:36.427269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.429223"], ["updated_at", "2016-12-07 20:17:36.429223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-12-07 20:17:36.432435"], ["updated_at", "2016-12-07 20:17:36.432435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.434170"], ["updated_at", "2016-12-07 20:17:36.434170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-12-07 20:17:36.437225"], ["updated_at", "2016-12-07 20:17:36.437225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.439542"], ["updated_at", "2016-12-07 20:17:36.439542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:17:36.443766"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:17:36.446875"], ["updated_at", "2016-12-07 20:17:36.446875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 20e247cf-ff8b-45ac-b34e-8e8f4d0074ff) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:17:36.429223"], ["updated_at", "2016-12-07 20:17:36.429223"]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.460348"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:17:36.434170"], ["updated_at", "2016-12-07 20:17:36.434170"]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.465532"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:17:36.439542"], ["updated_at", "2016-12-07 20:17:36.439542"]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.471011"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.5ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:17:36.476440"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [20e247cf-ff8b-45ac-b34e-8e8f4d0074ff] Performed Pulitzer::CloneVersionJob from Inline(default) in 29.89ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:36.494072"], ["updated_at", "2016-12-07 20:17:36.494072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-12-07 20:17:36.497328"], ["updated_at", "2016-12-07 20:17:36.497328"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.499790"], ["updated_at", "2016-12-07 20:17:36.499790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.503920"], ["updated_at", "2016-12-07 20:17:36.503920"]]  (0.1ms) 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" = 'Text 25' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-12-07 20:17:36.509038"], ["updated_at", "2016-12-07 20:17:36.509038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.511083"], ["updated_at", "2016-12-07 20:17:36.511083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-12-07 20:17:36.514218"], ["updated_at", "2016-12-07 20:17:36.514218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.515900"], ["updated_at", "2016-12-07 20:17:36.515900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-12-07 20:17:36.519530"], ["updated_at", "2016-12-07 20:17:36.519530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.521393"], ["updated_at", "2016-12-07 20:17:36.521393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:17:36.526988"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:17:36.531498"], ["updated_at", "2016-12-07 20:17:36.531498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 050fd990-ac97-44cf-b55d-743d523ef48d) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:17:36.511083"], ["updated_at", "2016-12-07 20:17:36.511083"]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.542772"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:17:36.515900"], ["updated_at", "2016-12-07 20:17:36.515900"]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.548420"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:17:36.521393"], ["updated_at", "2016-12-07 20:17:36.521393"]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.555556"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] Pulitzer::FreeFormSection Load (0.2ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:17:36.569944"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [050fd990-ac97-44cf-b55d-743d523ef48d] Performed Pulitzer::CloneVersionJob from Inline(default) in 40.66ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:17:36.580627"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:17:36.583848"], ["updated_at", "2016-12-07 20:17:36.583848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 73988f1d-531a-4204-a230-65437fdf6076) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:17:36.511083"], ["updated_at", "2016-12-07 20:17:36.511083"]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:17:36.594342"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:17:36.515900"], ["updated_at", "2016-12-07 20:17:36.515900"]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:17:36.599951"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:17:36.521393"], ["updated_at", "2016-12-07 20:17:36.521393"]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:17:36.608049"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:17:36.611293"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73988f1d-531a-4204-a230-65437fdf6076] Performed Pulitzer::CloneVersionJob from Inline(default) in 28.97ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:36.624134"], ["updated_at", "2016-12-07 20:17:36.624134"]]  (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 1 [["slug", "winterfell-news-10"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-12-07 20:17:36.627621"], ["updated_at", "2016-12-07 20:17:36.627621"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.631305"], ["updated_at", "2016-12-07 20:17:36.631305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.633033"], ["updated_at", "2016-12-07 20:17:36.633033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-12-07 20:17:36.635618"], ["updated_at", "2016-12-07 20:17:36.635618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.637445"], ["updated_at", "2016-12-07 20:17:36.637445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-12-07 20:17:36.642065"], ["updated_at", "2016-12-07 20:17:36.642065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.643678"], ["updated_at", "2016-12-07 20:17:36.643678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-12-07 20:17:36.646589"], ["updated_at", "2016-12-07 20:17:36.646589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.648235"], ["updated_at", "2016-12-07 20:17:36.648235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:17:36.650706"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:17:36.654818"], ["updated_at", "2016-12-07 20:17:36.654818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: a224986f-baa2-488c-a9a2-d1973823c561) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.5ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:17:36.637445"], ["updated_at", "2016-12-07 20:17:36.637445"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.668042"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:17:36.643678"], ["updated_at", "2016-12-07 20:17:36.643678"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.673573"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:17:36.648235"], ["updated_at", "2016-12-07 20:17:36.648235"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.680427"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:17:36.683554"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a224986f-baa2-488c-a9a2-d1973823c561] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.99ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:17:36.692441"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-12-07 20:17:36.703799"], ["updated_at", "2016-12-07 20:17:36.703799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:36.708351"], ["updated_at", "2016-12-07 20:17:36.708351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-12-07 20:17:36.711648"], ["updated_at", "2016-12-07 20:17:36.711648"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.713349"], ["updated_at", "2016-12-07 20:17:36.713349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:36.714867"], ["updated_at", "2016-12-07 20:17:36.714867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-12-07 20:17:36.717617"], ["updated_at", "2016-12-07 20:17:36.717617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.719468"], ["updated_at", "2016-12-07 20:17:36.719468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 32' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 32"], ["created_at", "2016-12-07 20:17:36.722974"], ["updated_at", "2016-12-07 20:17:36.722974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.726176"], ["updated_at", "2016-12-07 20:17:36.726176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 33"], ["created_at", "2016-12-07 20:17:36.729360"], ["updated_at", "2016-12-07 20:17:36.729360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.732712"], ["updated_at", "2016-12-07 20:17:36.732712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.743434"], ["updated_at", "2016-12-07 20:17:36.743434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-12-07 20:17:36.745835"], ["updated_at", "2016-12-07 20:17:36.745835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:17:36.748053"], ["updated_at", "2016-12-07 20:17:36.748053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:17:36.752158"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:17:36.754416"], ["updated_at", "2016-12-07 20:17:36.754416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:17:36.719468"], ["updated_at", "2016-12-07 20:17:36.719468"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.766395"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:17:36.726176"], ["updated_at", "2016-12-07 20:17:36.726176"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.771138"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:17:36.732712"], ["updated_at", "2016-12-07 20:17:36.732712"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:17:36.778331"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:17:36.782872"], ["updated_at", "2016-12-07 20:17:36.782872"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:17:36.785521"], ["updated_at", "2016-12-07 20:17:36.785521"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:17:36.787197"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3c52b44b-cf5a-4d3d-8e82-7dc4bf2ea3ac] Performed Pulitzer::CloneVersionJob from Inline(default) in 34.02ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 34' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 34"], ["created_at", "2016-12-07 20:17:36.800270"], ["updated_at", "2016-12-07 20:17:36.800270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 35' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 35"], ["created_at", "2016-12-07 20:17:36.813269"], ["updated_at", "2016-12-07 20:17:36.813269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 36' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 36"], ["created_at", "2016-12-07 20:17:36.819430"], ["updated_at", "2016-12-07 20:17:36.819430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 37' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 37"], ["created_at", "2016-12-07 20:17:36.828647"], ["updated_at", "2016-12-07 20:17:36.828647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:17:36.837951"], ["updated_at", "2016-12-07 20:17:36.837951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 32"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:17:36.841755"], ["updated_at", "2016-12-07 20:17:36.841755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:17:36.848003"], ["updated_at", "2016-12-07 20:17:36.848003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 33"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:17:36.849968"], ["updated_at", "2016-12-07 20:17:36.849968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 38' LIMIT 1 SQL (0.9ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 38"], ["created_at", "2016-12-07 20:17:36.855714"], ["updated_at", "2016-12-07 20:17:36.855714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 39' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 39"], ["created_at", "2016-12-07 20:17:36.863437"], ["updated_at", "2016-12-07 20:17:36.863437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-07 20:17:36.869425"], ["updated_at", "2016-12-07 20:17:36.869425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:37.025679"], ["updated_at", "2016-12-07 20:17:37.025679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:37.042766"], ["updated_at", "2016-12-07 20:17:37.042766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-12-07 20:17:37.045953"], ["updated_at", "2016-12-07 20:17:37.045953"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:37.047818"], ["updated_at", "2016-12-07 20:17:37.047818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:37.049762"], ["updated_at", "2016-12-07 20:17:37.049762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:17:37.051663"], ["updated_at", "2016-12-07 20:17:37.051663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:37.059496"], ["updated_at", "2016-12-07 20:17:37.059496"]]  (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 1 [["slug", "winterfell-news-14"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-12-07 20:17:37.062725"], ["updated_at", "2016-12-07 20:17:37.062725"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:37.065339"], ["updated_at", "2016-12-07 20:17:37.065339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:37.069713"], ["updated_at", "2016-12-07 20:17:37.069713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-12-07 20:17:37.073219"], ["updated_at", "2016-12-07 20:17:37.073219"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:37.076473"], ["updated_at", "2016-12-07 20:17:37.076473"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-12-07 20:17:37.079096"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-12-07 20:17:37.085275"], ["updated_at", "2016-12-07 20:17:37.085275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:37.090919"], ["updated_at", "2016-12-07 20:17:37.090919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-12-07 20:17:37.095979"], ["updated_at", "2016-12-07 20:17:37.095979"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:37.099315"], ["updated_at", "2016-12-07 20:17:37.099315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:37.102291"], ["updated_at", "2016-12-07 20:17:37.102291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:37.142348"], ["updated_at", "2016-12-07 20:17:37.142348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 40' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 40"], ["created_at", "2016-12-07 20:17:37.148781"], ["updated_at", "2016-12-07 20:17:37.148781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-12-07 20:17:37.204103"], ["updated_at", "2016-12-07 20:17:37.204103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:17:37.220058"], ["updated_at", "2016-12-07 20:17:37.220058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-12-07 20:17:37.223598"], ["updated_at", "2016-12-07 20:17:37.223598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.3ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:37.233518"], ["updated_at", "2016-12-07 20:17:37.233518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-17"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 17"], ["post_type_id", 1], ["slug", "winterfell-news-17"], ["created_at", "2016-12-07 20:17:37.239067"], ["updated_at", "2016-12-07 20:17:37.239067"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:37.242147"], ["updated_at", "2016-12-07 20:17:37.242147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:17:37.245400"], ["updated_at", "2016-12-07 20:17:37.245400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-12-07 20:17:37.248637"], ["updated_at", "2016-12-07 20:17:37.248637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:17:37.251797"], ["updated_at", "2016-12-07 20:17:37.251797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:17:37.262985"], ["updated_at", "2016-12-07 20:17:37.262985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-12-07 20:17:37.266248"], ["updated_at", "2016-12-07 20:17:37.266248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.7ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-12-07 20:17:37.277501"], ["updated_at", "2016-12-07 20:17:37.277501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-12-07 20:17:37.282163"], ["updated_at", "2016-12-07 20:17:37.282163"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:17:37.283807' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-12-07 20:17:37.286422"], ["updated_at", "2016-12-07 20:17:37.286422"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:17:37.287614' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:17:37.299711"], ["updated_at", "2016-12-07 20:17:37.299711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-12-07 20:17:37.302505"], ["updated_at", "2016-12-07 20:17:37.302505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:17:37.307294"], ["updated_at", "2016-12-07 20:17:37.307294"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:17:37.309655' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:17:37.315346"], ["updated_at", "2016-12-07 20:17:37.315346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-12-07 20:17:37.319844"], ["updated_at", "2016-12-07 20:17:37.319844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:17:37.335041"], ["updated_at", "2016-12-07 20:17:37.335041"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:17:37.336761' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.5ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:17:37.344770"], ["updated_at", "2016-12-07 20:17:37.344770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-12-07 20:17:37.348420"], ["updated_at", "2016-12-07 20:17:37.348420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:17:37.352681"], ["updated_at", "2016-12-07 20:17:37.352681"]] SQL (0.2ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:17:37.354050' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:37.362883"], ["updated_at", "2016-12-07 20:17:37.362883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-18"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 18"], ["post_type_id", 1], ["slug", "winterfell-news-18"], ["created_at", "2016-12-07 20:17:37.365795"], ["updated_at", "2016-12-07 20:17:37.365795"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:37.368134"], ["updated_at", "2016-12-07 20:17:37.368134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-12-07 20:17:37.400192"], ["updated_at", "2016-12-07 20:17:37.400192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:17:37.403784"], ["updated_at", "2016-12-07 20:17:37.403784"]]  (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 1 [["slug", "winterfell-news-19"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 19"], ["post_type_id", 1], ["slug", "winterfell-news-19"], ["created_at", "2016-12-07 20:17:37.408296"], ["updated_at", "2016-12-07 20:17:37.408296"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:37.410817"], ["updated_at", "2016-12-07 20:17:37.410817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:17:37.412987"], ["updated_at", "2016-12-07 20:17:37.412987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:17:37.415406"], ["updated_at", "2016-12-07 20:17:37.415406"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) 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.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts';  (1.3ms) 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';  (0.7ms) 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.8ms) 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';  (0.8ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:20:44.640719"], ["updated_at", "2016-12-07 20:20:44.640719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (4.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (20.2ms) Completed 200 OK in 50ms (Views: 29.5ms | ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:20:44.705578"], ["updated_at", "2016-12-07 20:20:44.705578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (8.3ms) Completed 200 OK in 16ms (Views: 10.2ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:20:44.730490"], ["updated_at", "2016-12-07 20:20:44.730490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (8.8ms) Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:20:44.752568"], ["updated_at", "2016-12-07 20:20:44.752568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.7ms) Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:20:44.775027"], ["updated_at", "2016-12-07 20:20:44.775027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.0ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:20:44.792695"], ["updated_at", "2016-12-07 20:20:44.792695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (12.8ms) Completed 200 OK in 25ms (Views: 16.5ms | ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:20:44.834650"], ["updated_at", "2016-12-07 20:20:44.834650"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.4ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (10.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (12.6ms) Completed 200 OK in 25ms (Views: 14.1ms | ActiveRecord: 1.0ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:20:44.873560"], ["updated_at", "2016-12-07 20:20:44.873560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (15.6ms) Completed 200 OK in 19ms (Views: 17.5ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:20:44.914937"], ["updated_at", "2016-12-07 20:20:44.914937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:20:44.919085"], ["updated_at", "2016-12-07 20:20:44.919085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (6.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.3ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:44.950919"], ["updated_at", "2016-12-07 20:20:44.950919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 20:20:45.043331"], ["updated_at", "2016-12-07 20:20:45.043331"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.045964"], ["updated_at", "2016-12-07 20:20:45.045964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.048698"], ["updated_at", "2016-12-07 20:20:45.048698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 20:20:45.060822"], ["updated_at", "2016-12-07 20:20:45.060822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.063242"], ["updated_at", "2016-12-07 20:20:45.063242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 20:20:45.066008"], ["updated_at", "2016-12-07 20:20:45.066008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.067697"], ["updated_at", "2016-12-07 20:20:45.067697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 20:20:45.070747"], ["updated_at", "2016-12-07 20:20:45.070747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.072345"], ["updated_at", "2016-12-07 20:20:45.072345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.3ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:20:45.082916"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 18ms (Views: 0.2ms | ActiveRecord: 1.2ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:45.130239"], ["updated_at", "2016-12-07 20:20:45.130239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 20:20:45.132697"], ["updated_at", "2016-12-07 20:20:45.132697"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.134303"], ["updated_at", "2016-12-07 20:20:45.134303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.135914"], ["updated_at", "2016-12-07 20:20:45.135914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 20:20:45.138210"], ["updated_at", "2016-12-07 20:20:45.138210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.139614"], ["updated_at", "2016-12-07 20:20:45.139614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 20:20:45.144108"], ["updated_at", "2016-12-07 20:20:45.144108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.146485"], ["updated_at", "2016-12-07 20:20:45.146485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 20:20:45.150630"], ["updated_at", "2016-12-07 20:20:45.150630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.152897"], ["updated_at", "2016-12-07 20:20:45.152897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:20:45.163175"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:20:45.166103"], ["updated_at", "2016-12-07 20:20:45.166103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 50b0b557-4925-4326-85c5-5dff7d977f13) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] Pulitzer::Version Load (0.3ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] Pulitzer::ContentElement Load (0.5ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:20:45.139614"], ["updated_at", "2016-12-07 20:20:45.139614"]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.187937"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:20:45.146485"], ["updated_at", "2016-12-07 20:20:45.146485"]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.192883"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:20:45.152897"], ["updated_at", "2016-12-07 20:20:45.152897"]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.197338"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:20:45.200888"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [50b0b557-4925-4326-85c5-5dff7d977f13] Performed Pulitzer::CloneVersionJob from Inline(default) in 32.3ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:20:45.212844"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (0.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (2.8ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.9ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.9ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (33.1ms) Completed 200 OK in 44ms (Views: 0.3ms | ActiveRecord: 1.0ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:45.261352"], ["updated_at", "2016-12-07 20:20:45.261352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 20:20:45.264688"], ["updated_at", "2016-12-07 20:20:45.264688"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.266538"], ["updated_at", "2016-12-07 20:20:45.266538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.268361"], ["updated_at", "2016-12-07 20:20:45.268361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 20:20:45.271383"], ["updated_at", "2016-12-07 20:20:45.271383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.272954"], ["updated_at", "2016-12-07 20:20:45.272954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 20:20:45.275746"], ["updated_at", "2016-12-07 20:20:45.275746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.277278"], ["updated_at", "2016-12-07 20:20:45.277278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 20:20:45.280152"], ["updated_at", "2016-12-07 20:20:45.280152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.281609"], ["updated_at", "2016-12-07 20:20:45.281609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:20:45.284877"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:20:45.287379"], ["updated_at", "2016-12-07 20:20:45.287379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 4561a65b-ee2d-4ef4-85e2-15ddeee744ec) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:20:45.272954"], ["updated_at", "2016-12-07 20:20:45.272954"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.296001"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:20:45.277278"], ["updated_at", "2016-12-07 20:20:45.277278"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.301370"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:20:45.281609"], ["updated_at", "2016-12-07 20:20:45.281609"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.307647"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:20:45.310175"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4561a65b-ee2d-4ef4-85e2-15ddeee744ec] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.23ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:20:45.321769"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:20:45.324285"], ["updated_at", "2016-12-07 20:20:45.324285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 8235bf6f-0388-4073-8956-cd68c58664fd) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:20:45.272954"], ["updated_at", "2016-12-07 20:20:45.272954"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:20:45.333040"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:20:45.277278"], ["updated_at", "2016-12-07 20:20:45.277278"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:20:45.338257"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:20:45.281609"], ["updated_at", "2016-12-07 20:20:45.281609"]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:20:45.343318"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:20:45.346108"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [8235bf6f-0388-4073-8956-cd68c58664fd] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.34ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (7.3ms) Completed 200 OK in 38ms (Views: 0.4ms | ActiveRecord: 2.2ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-12-07 20:20:45.371844"], ["updated_at", "2016-12-07 20:20:45.371844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:20:45.375941"], ["updated_at", "2016-12-07 20:20:45.375941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-12-07 20:20:45.391243"], ["updated_at", "2016-12-07 20:20:45.391243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:20:45.393581"], ["updated_at", "2016-12-07 20:20:45.393581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-12-07 20:20:45.404265"], ["updated_at", "2016-12-07 20:20:45.404265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:20:45.406811"], ["updated_at", "2016-12-07 20:20:45.406811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-12-07 20:20:45.416389"], ["updated_at", "2016-12-07 20:20:45.416389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-12-07 20:20:45.429709"], ["updated_at", "2016-12-07 20:20:45.429709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.3ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-12-07 20:20:45.492442"], ["updated_at", "2016-12-07 20:20:45.492442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 2.1ms | ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-12-07 20:20:45.508131"], ["updated_at", "2016-12-07 20:20:45.508131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:20:45.514228"], ["updated_at", "2016-12-07 20:20:45.514228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 409 Conflict in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:20:45.531425"], ["updated_at", "2016-12-07 20:20:45.531425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-12-07 20:20:45.544417"], ["updated_at", "2016-12-07 20:20:45.544417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-12-07 20:20:45.556745"], ["updated_at", "2016-12-07 20:20:45.556745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-12-07 20:20:45.572339"], ["updated_at", "2016-12-07 20:20:45.572339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.6ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-12-07 20:20:45.585422"], ["updated_at", "2016-12-07 20:20:45.585422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-12-07 20:20:45.593861"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:20:45.599749"], ["updated_at", "2016-12-07 20:20:45.599749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-12-07 20:20:45.602982"], ["updated_at", "2016-12-07 20:20:45.602982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:20:45.614487"], ["updated_at", "2016-12-07 20:20:45.614487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-12-07 20:20:45.617845"], ["updated_at", "2016-12-07 20:20:45.617845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-12-07 20:20:45.631229"], ["updated_at", "2016-12-07 20:20:45.631229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-12-07 20:20:45.643083"], ["updated_at", "2016-12-07 20:20:45.643083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:45.656939"], ["updated_at", "2016-12-07 20:20:45.656939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 20:20:45.659735"], ["updated_at", "2016-12-07 20:20:45.659735"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.661573"], ["updated_at", "2016-12-07 20:20:45.661573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.663550"], ["updated_at", "2016-12-07 20:20:45.663550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-07 20:20:45.667514"], ["updated_at", "2016-12-07 20:20:45.667514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.670038"], ["updated_at", "2016-12-07 20:20:45.670038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-07 20:20:45.674545"], ["updated_at", "2016-12-07 20:20:45.674545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.676065"], ["updated_at", "2016-12-07 20:20:45.676065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-07 20:20:45.678665"], ["updated_at", "2016-12-07 20:20:45.678665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.680083"], ["updated_at", "2016-12-07 20:20:45.680083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:20:45.683126"], ["updated_at", "2016-12-07 20:20:45.683126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:20:45.670038"], ["updated_at", "2016-12-07 20:20:45.670038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.690055"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:20:45.676065"], ["updated_at", "2016-12-07 20:20:45.676065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.694626"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:20:45.680083"], ["updated_at", "2016-12-07 20:20:45.680083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.698716"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:20:45.701138"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:45.710523"], ["updated_at", "2016-12-07 20:20:45.710523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-12-07 20:20:45.712989"], ["updated_at", "2016-12-07 20:20:45.712989"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.714555"], ["updated_at", "2016-12-07 20:20:45.714555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.715918"], ["updated_at", "2016-12-07 20:20:45.715918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:20:45.722263"], ["updated_at", "2016-12-07 20:20:45.722263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:20:45.733893"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.5ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:45.742872"], ["updated_at", "2016-12-07 20:20:45.742872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-12-07 20:20:45.746637"], ["updated_at", "2016-12-07 20:20:45.746637"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.748387"], ["updated_at", "2016-12-07 20:20:45.748387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.750394"], ["updated_at", "2016-12-07 20:20:45.750394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-12-07 20:20:45.754664"], ["updated_at", "2016-12-07 20:20:45.754664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.756397"], ["updated_at", "2016-12-07 20:20:45.756397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-12-07 20:20:45.759033"], ["updated_at", "2016-12-07 20:20:45.759033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.760396"], ["updated_at", "2016-12-07 20:20:45.760396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-12-07 20:20:45.762688"], ["updated_at", "2016-12-07 20:20:45.762688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.764019"], ["updated_at", "2016-12-07 20:20:45.764019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:20:45.766256"], ["updated_at", "2016-12-07 20:20:45.766256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:20:45.756397"], ["updated_at", "2016-12-07 20:20:45.756397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.773301"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:20:45.760396"], ["updated_at", "2016-12-07 20:20:45.760396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.777750"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:20:45.764019"], ["updated_at", "2016-12-07 20:20:45.764019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.782409"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:20:45.784615"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:45.793877"], ["updated_at", "2016-12-07 20:20:45.793877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-12-07 20:20:45.800995"], ["updated_at", "2016-12-07 20:20:45.800995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:20:45.803112"], ["updated_at", "2016-12-07 20:20:45.803112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-12-07 20:20:45.806330"], ["updated_at", "2016-12-07 20:20:45.806330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:20:45.807796"], ["updated_at", "2016-12-07 20:20:45.807796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-12-07 20:20:45.810069"], ["updated_at", "2016-12-07 20:20:45.810069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:20:45.811291"], ["updated_at", "2016-12-07 20:20:45.811291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:20:45.822558"], ["updated_at", "2016-12-07 20:20:45.822558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:20:45.825779"], ["updated_at", "2016-12-07 20:20:45.825779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:20:45.830724"], ["updated_at", "2016-12-07 20:20:45.830724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:45.835802"], ["updated_at", "2016-12-07 20:20:45.835802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-12-07 20:20:45.840428"], ["updated_at", "2016-12-07 20:20:45.840428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:20:45.842235"], ["updated_at", "2016-12-07 20:20:45.842235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-12-07 20:20:45.845195"], ["updated_at", "2016-12-07 20:20:45.845195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:20:45.846557"], ["updated_at", "2016-12-07 20:20:45.846557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-12-07 20:20:45.848840"], ["updated_at", "2016-12-07 20:20:45.848840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:20:45.850112"], ["updated_at", "2016-12-07 20:20:45.850112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-12-07 20:20:45.854447"], ["updated_at", "2016-12-07 20:20:45.854447"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.856125"], ["updated_at", "2016-12-07 20:20:45.856125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:20:45.862408"], ["updated_at", "2016-12-07 20:20:45.862408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:20:45.866423"], ["updated_at", "2016-12-07 20:20:45.866423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:20:45.871216"], ["updated_at", "2016-12-07 20:20:45.871216"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:45.878835"], ["updated_at", "2016-12-07 20:20:45.878835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-12-07 20:20:45.885678"], ["updated_at", "2016-12-07 20:20:45.885678"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.889297"], ["updated_at", "2016-12-07 20:20:45.889297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:45.906471"], ["updated_at", "2016-12-07 20:20:45.906471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-12-07 20:20:45.909302"], ["updated_at", "2016-12-07 20:20:45.909302"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.911234"], ["updated_at", "2016-12-07 20:20:45.911234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.913761"], ["updated_at", "2016-12-07 20:20:45.913761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-12-07 20:20:45.917461"], ["updated_at", "2016-12-07 20:20:45.917461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.919239"], ["updated_at", "2016-12-07 20:20:45.919239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-12-07 20:20:45.923880"], ["updated_at", "2016-12-07 20:20:45.923880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.925529"], ["updated_at", "2016-12-07 20:20:45.925529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-12-07 20:20:45.929081"], ["updated_at", "2016-12-07 20:20:45.929081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.931222"], ["updated_at", "2016-12-07 20:20:45.931222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:20:45.934330"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:20:45.937699"], ["updated_at", "2016-12-07 20:20:45.937699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 1956ceb9-d1e4-427a-acd4-c7ea1d1f494a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:20:45.919239"], ["updated_at", "2016-12-07 20:20:45.919239"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.947491"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:20:45.925529"], ["updated_at", "2016-12-07 20:20:45.925529"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.952466"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:20:45.931222"], ["updated_at", "2016-12-07 20:20:45.931222"]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:45.968154"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:20:45.971484"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [1956ceb9-d1e4-427a-acd4-c7ea1d1f494a] Performed Pulitzer::CloneVersionJob from Inline(default) in 35.31ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:45.985294"], ["updated_at", "2016-12-07 20:20:45.985294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-12-07 20:20:45.987894"], ["updated_at", "2016-12-07 20:20:45.987894"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.989800"], ["updated_at", "2016-12-07 20:20:45.989800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:45.991245"], ["updated_at", "2016-12-07 20:20:45.991245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-12-07 20:20:45.994323"], ["updated_at", "2016-12-07 20:20:45.994323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:20:45.996205"], ["updated_at", "2016-12-07 20:20:45.996205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-12-07 20:20:45.999730"], ["updated_at", "2016-12-07 20:20:45.999730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:20:46.001527"], ["updated_at", "2016-12-07 20:20:46.001527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-12-07 20:20:46.005105"], ["updated_at", "2016-12-07 20:20:46.005105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:20:46.006734"], ["updated_at", "2016-12-07 20:20:46.006734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:20:46.008813"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:20:46.011192"], ["updated_at", "2016-12-07 20:20:46.011192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: d96982c6-b874-48c0-a5ec-1f08c5043ef1) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:20:45.996205"], ["updated_at", "2016-12-07 20:20:45.996205"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:46.021540"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:20:46.001527"], ["updated_at", "2016-12-07 20:20:46.001527"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:46.026171"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:20:46.006734"], ["updated_at", "2016-12-07 20:20:46.006734"]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:46.030921"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:20:46.033567"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [d96982c6-b874-48c0-a5ec-1f08c5043ef1] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.75ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:20:46.043251"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:20:46.046671"], ["updated_at", "2016-12-07 20:20:46.046671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 98156d74-7157-4a5a-9281-8f9c5e5df799) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:20:45.996205"], ["updated_at", "2016-12-07 20:20:45.996205"]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:20:46.056000"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:20:46.001527"], ["updated_at", "2016-12-07 20:20:46.001527"]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:20:46.060128"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:20:46.006734"], ["updated_at", "2016-12-07 20:20:46.006734"]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:20:46.064669"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:20:46.066814"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [98156d74-7157-4a5a-9281-8f9c5e5df799] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.54ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:46.079614"], ["updated_at", "2016-12-07 20:20:46.079614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-12-07 20:20:46.082100"], ["updated_at", "2016-12-07 20:20:46.082100"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.083552"], ["updated_at", "2016-12-07 20:20:46.083552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.085616"], ["updated_at", "2016-12-07 20:20:46.085616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-12-07 20:20:46.088436"], ["updated_at", "2016-12-07 20:20:46.088436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:20:46.089897"], ["updated_at", "2016-12-07 20:20:46.089897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-12-07 20:20:46.092675"], ["updated_at", "2016-12-07 20:20:46.092675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:20:46.094119"], ["updated_at", "2016-12-07 20:20:46.094119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-12-07 20:20:46.096487"], ["updated_at", "2016-12-07 20:20:46.096487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:20:46.097841"], ["updated_at", "2016-12-07 20:20:46.097841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:20:46.100159"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:20:46.102896"], ["updated_at", "2016-12-07 20:20:46.102896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 867655c7-24d3-4d17-9e6b-aefa86260063) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:20:46.089897"], ["updated_at", "2016-12-07 20:20:46.089897"]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:46.111858"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:20:46.094119"], ["updated_at", "2016-12-07 20:20:46.094119"]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:46.117836"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:20:46.097841"], ["updated_at", "2016-12-07 20:20:46.097841"]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:46.124497"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:20:46.127098"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [867655c7-24d3-4d17-9e6b-aefa86260063] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.06ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:20:46.133315"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-12-07 20:20:46.144005"], ["updated_at", "2016-12-07 20:20:46.144005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:46.146681"], ["updated_at", "2016-12-07 20:20:46.146681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-12-07 20:20:46.149067"], ["updated_at", "2016-12-07 20:20:46.149067"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.150783"], ["updated_at", "2016-12-07 20:20:46.150783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.152654"], ["updated_at", "2016-12-07 20:20:46.152654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-12-07 20:20:46.155721"], ["updated_at", "2016-12-07 20:20:46.155721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:20:46.157796"], ["updated_at", "2016-12-07 20:20:46.157796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 32' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 32"], ["created_at", "2016-12-07 20:20:46.160367"], ["updated_at", "2016-12-07 20:20:46.160367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:20:46.161739"], ["updated_at", "2016-12-07 20:20:46.161739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 33' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 33"], ["created_at", "2016-12-07 20:20:46.164323"], ["updated_at", "2016-12-07 20:20:46.164323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:20:46.165807"], ["updated_at", "2016-12-07 20:20:46.165807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:20:46.173020"], ["updated_at", "2016-12-07 20:20:46.173020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-12-07 20:20:46.175778"], ["updated_at", "2016-12-07 20:20:46.175778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:20:46.178672"], ["updated_at", "2016-12-07 20:20:46.178672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:20:46.183198"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:20:46.184807"], ["updated_at", "2016-12-07 20:20:46.184807"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 9ab829d4-bfc4-44fb-a7f3-132964c3a837) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:20:46.157796"], ["updated_at", "2016-12-07 20:20:46.157796"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:46.194492"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:20:46.161739"], ["updated_at", "2016-12-07 20:20:46.161739"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:46.199104"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:20:46.165807"], ["updated_at", "2016-12-07 20:20:46.165807"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:20:46.203695"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:20:46.206455"], ["updated_at", "2016-12-07 20:20:46.206455"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:20:46.207878"], ["updated_at", "2016-12-07 20:20:46.207878"]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:20:46.209591"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [9ab829d4-bfc4-44fb-a7f3-132964c3a837] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.06ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 34' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 34"], ["created_at", "2016-12-07 20:20:46.220710"], ["updated_at", "2016-12-07 20:20:46.220710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 35"], ["created_at", "2016-12-07 20:20:46.230023"], ["updated_at", "2016-12-07 20:20:46.230023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 36' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 36"], ["created_at", "2016-12-07 20:20:46.235124"], ["updated_at", "2016-12-07 20:20:46.235124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 37' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 37"], ["created_at", "2016-12-07 20:20:46.240253"], ["updated_at", "2016-12-07 20:20:46.240253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:20:46.245640"], ["updated_at", "2016-12-07 20:20:46.245640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 32"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:20:46.247268"], ["updated_at", "2016-12-07 20:20:46.247268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:20:46.253114"], ["updated_at", "2016-12-07 20:20:46.253114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 33"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:20:46.255453"], ["updated_at", "2016-12-07 20:20:46.255453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 38' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 38"], ["created_at", "2016-12-07 20:20:46.261234"], ["updated_at", "2016-12-07 20:20:46.261234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 39' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 39"], ["created_at", "2016-12-07 20:20:46.267202"], ["updated_at", "2016-12-07 20:20:46.267202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-07 20:20:46.274016"], ["updated_at", "2016-12-07 20:20:46.274016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:46.410279"], ["updated_at", "2016-12-07 20:20:46.410279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:46.432453"], ["updated_at", "2016-12-07 20:20:46.432453"]]  (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 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-12-07 20:20:46.435698"], ["updated_at", "2016-12-07 20:20:46.435698"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.437756"], ["updated_at", "2016-12-07 20:20:46.437756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.440320"], ["updated_at", "2016-12-07 20:20:46.440320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:20:46.441969"], ["updated_at", "2016-12-07 20:20:46.441969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:46.448610"], ["updated_at", "2016-12-07 20:20:46.448610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-12-07 20:20:46.451335"], ["updated_at", "2016-12-07 20:20:46.451335"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.455247"], ["updated_at", "2016-12-07 20:20:46.455247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:46.461165"], ["updated_at", "2016-12-07 20:20:46.461165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-12-07 20:20:46.463822"], ["updated_at", "2016-12-07 20:20:46.463822"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.465516"], ["updated_at", "2016-12-07 20:20:46.465516"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-12-07 20:20:46.468026"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-12-07 20:20:46.474211"], ["updated_at", "2016-12-07 20:20:46.474211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:46.477531"], ["updated_at", "2016-12-07 20:20:46.477531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-12-07 20:20:46.480072"], ["updated_at", "2016-12-07 20:20:46.480072"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.482992"], ["updated_at", "2016-12-07 20:20:46.482992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.485257"], ["updated_at", "2016-12-07 20:20:46.485257"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:46.513365"], ["updated_at", "2016-12-07 20:20:46.513365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 40"], ["created_at", "2016-12-07 20:20:46.517893"], ["updated_at", "2016-12-07 20:20:46.517893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.9ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-12-07 20:20:46.594697"], ["updated_at", "2016-12-07 20:20:46.594697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:20:46.608450"], ["updated_at", "2016-12-07 20:20:46.608450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-12-07 20:20:46.611559"], ["updated_at", "2016-12-07 20:20:46.611559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:46.619642"], ["updated_at", "2016-12-07 20:20:46.619642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-17"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 17"], ["post_type_id", 1], ["slug", "winterfell-news-17"], ["created_at", "2016-12-07 20:20:46.622791"], ["updated_at", "2016-12-07 20:20:46.622791"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.624805"], ["updated_at", "2016-12-07 20:20:46.624805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:20:46.626941"], ["updated_at", "2016-12-07 20:20:46.626941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-12-07 20:20:46.629736"], ["updated_at", "2016-12-07 20:20:46.629736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:20:46.631960"], ["updated_at", "2016-12-07 20:20:46.631960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:20:46.641428"], ["updated_at", "2016-12-07 20:20:46.641428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-12-07 20:20:46.644473"], ["updated_at", "2016-12-07 20:20:46.644473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-12-07 20:20:46.649973"], ["updated_at", "2016-12-07 20:20:46.649973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-12-07 20:20:46.654658"], ["updated_at", "2016-12-07 20:20:46.654658"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:20:46.655873' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-12-07 20:20:46.658735"], ["updated_at", "2016-12-07 20:20:46.658735"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:20:46.659668' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:20:46.666489"], ["updated_at", "2016-12-07 20:20:46.666489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-12-07 20:20:46.669539"], ["updated_at", "2016-12-07 20:20:46.669539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:20:46.672138"], ["updated_at", "2016-12-07 20:20:46.672138"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:20:46.672961' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:20:46.679030"], ["updated_at", "2016-12-07 20:20:46.679030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-12-07 20:20:46.682115"], ["updated_at", "2016-12-07 20:20:46.682115"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:20:46.685993"], ["updated_at", "2016-12-07 20:20:46.685993"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:20:46.687743' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:20:46.693329"], ["updated_at", "2016-12-07 20:20:46.693329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-12-07 20:20:46.696154"], ["updated_at", "2016-12-07 20:20:46.696154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:20:46.698795"], ["updated_at", "2016-12-07 20:20:46.698795"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:20:46.699757' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:46.704509"], ["updated_at", "2016-12-07 20:20:46.704509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-18"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 18"], ["post_type_id", 1], ["slug", "winterfell-news-18"], ["created_at", "2016-12-07 20:20:46.707284"], ["updated_at", "2016-12-07 20:20:46.707284"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.709123"], ["updated_at", "2016-12-07 20:20:46.709123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-12-07 20:20:46.729196"], ["updated_at", "2016-12-07 20:20:46.729196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:20:46.732563"], ["updated_at", "2016-12-07 20:20:46.732563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-19"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 19"], ["post_type_id", 1], ["slug", "winterfell-news-19"], ["created_at", "2016-12-07 20:20:46.735058"], ["updated_at", "2016-12-07 20:20:46.735058"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.736981"], ["updated_at", "2016-12-07 20:20:46.736981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:20:46.739021"], ["updated_at", "2016-12-07 20:20:46.739021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:20:46.741323"], ["updated_at", "2016-12-07 20:20:46.741323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) 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.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.7ms) 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.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';  (0.8ms) 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';  (0.7ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (0.9ms) 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.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.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:21:10.644301"], ["updated_at", "2016-12-07 20:21:10.644301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (5.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (20.1ms) Completed 200 OK in 48ms (Views: 28.8ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:21:10.707776"], ["updated_at", "2016-12-07 20:21:10.707776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (6.9ms) Completed 200 OK in 14ms (Views: 8.5ms | ActiveRecord: 0.7ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:21:10.732157"], ["updated_at", "2016-12-07 20:21:10.732157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (11.4ms) Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:21:10.755384"], ["updated_at", "2016-12-07 20:21:10.755384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (4.5ms) Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-07 20:21:10.776584"], ["updated_at", "2016-12-07 20:21:10.776584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:21:10.794482"], ["updated_at", "2016-12-07 20:21:10.794482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (13.6ms) Completed 200 OK in 26ms (Views: 17.2ms | ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:21:10.837186"], ["updated_at", "2016-12-07 20:21:10.837186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.6ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (10.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (12.4ms) Completed 200 OK in 25ms (Views: 13.8ms | ActiveRecord: 1.4ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:21:10.874356"], ["updated_at", "2016-12-07 20:21:10.874356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (15.4ms) Completed 200 OK in 29ms (Views: 17.1ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.2ms) 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", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:21:10.917903"], ["updated_at", "2016-12-07 20:21:10.917903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-07 20:21:10.921968"], ["updated_at", "2016-12-07 20:21:10.921968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.0ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:10.949569"], ["updated_at", "2016-12-07 20:21:10.949569"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-07 20:21:11.046628"], ["updated_at", "2016-12-07 20:21:11.046628"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.049384"], ["updated_at", "2016-12-07 20:21:11.049384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.051867"], ["updated_at", "2016-12-07 20:21:11.051867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-07 20:21:11.063718"], ["updated_at", "2016-12-07 20:21:11.063718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.066085"], ["updated_at", "2016-12-07 20:21:11.066085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-07 20:21:11.068660"], ["updated_at", "2016-12-07 20:21:11.068660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.070186"], ["updated_at", "2016-12-07 20:21:11.070186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-07 20:21:11.072659"], ["updated_at", "2016-12-07 20:21:11.072659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.074591"], ["updated_at", "2016-12-07 20:21:11.074591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:21:11.086207"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? [["post_id", 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", 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]] 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]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 26ms (Views: 0.2ms | ActiveRecord: 1.8ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:11.113702"], ["updated_at", "2016-12-07 20:21:11.113702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-07 20:21:11.116732"], ["updated_at", "2016-12-07 20:21:11.116732"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.118458"], ["updated_at", "2016-12-07 20:21:11.118458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.120178"], ["updated_at", "2016-12-07 20:21:11.120178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-07 20:21:11.122663"], ["updated_at", "2016-12-07 20:21:11.122663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.124144"], ["updated_at", "2016-12-07 20:21:11.124144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-07 20:21:11.126780"], ["updated_at", "2016-12-07 20:21:11.126780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.128180"], ["updated_at", "2016-12-07 20:21:11.128180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-07 20:21:11.131063"], ["updated_at", "2016-12-07 20:21:11.131063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.132720"], ["updated_at", "2016-12-07 20:21:11.132720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:21:11.138805"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:21:11.141107"], ["updated_at", "2016-12-07 20:21:11.141107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] Pulitzer::Version Load (0.4ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:21:11.124144"], ["updated_at", "2016-12-07 20:21:11.124144"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.155885"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:21:11.128180"], ["updated_at", "2016-12-07 20:21:11.128180"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.160222"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:21:11.132720"], ["updated_at", "2016-12-07 20:21:11.132720"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.167498"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:21:11.170225"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7eb75a7f-bc8e-45e7-8a3f-fdd3a8ee345a] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.48ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:21:11.182262"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.3ms) Pulitzer::PostTag Load (0.2ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.9ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (4.6ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (35.6ms) Completed 200 OK in 46ms (Views: 0.4ms | ActiveRecord: 1.1ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:11.233903"], ["updated_at", "2016-12-07 20:21:11.233903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-07 20:21:11.236557"], ["updated_at", "2016-12-07 20:21:11.236557"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.238457"], ["updated_at", "2016-12-07 20:21:11.238457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.240087"], ["updated_at", "2016-12-07 20:21:11.240087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-07 20:21:11.242453"], ["updated_at", "2016-12-07 20:21:11.242453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.243896"], ["updated_at", "2016-12-07 20:21:11.243896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-07 20:21:11.246754"], ["updated_at", "2016-12-07 20:21:11.246754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.248316"], ["updated_at", "2016-12-07 20:21:11.248316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-07 20:21:11.250713"], ["updated_at", "2016-12-07 20:21:11.250713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.252518"], ["updated_at", "2016-12-07 20:21:11.252518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:21:11.256561"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:21:11.259083"], ["updated_at", "2016-12-07 20:21:11.259083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: be4ccc3e-5c77-41b7-914b-910d4cd9a88b) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:21:11.243896"], ["updated_at", "2016-12-07 20:21:11.243896"]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.268776"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:21:11.248316"], ["updated_at", "2016-12-07 20:21:11.248316"]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.273464"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:21:11.252518"], ["updated_at", "2016-12-07 20:21:11.252518"]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.277779"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:21:11.280142"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [be4ccc3e-5c77-41b7-914b-910d4cd9a88b] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.08ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:21:11.293994"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:21:11.297139"], ["updated_at", "2016-12-07 20:21:11.297139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 5b41908f-a2e7-40ab-b85c-f50ab7176981) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:21:11.243896"], ["updated_at", "2016-12-07 20:21:11.243896"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:21:11.306761"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:21:11.248316"], ["updated_at", "2016-12-07 20:21:11.248316"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:21:11.311590"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:21:11.252518"], ["updated_at", "2016-12-07 20:21:11.252518"]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:21:11.316430"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:21:11.319308"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [5b41908f-a2e7-40ab-b85c-f50ab7176981] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.57ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (8.5ms) Completed 200 OK in 41ms (Views: 0.3ms | ActiveRecord: 2.5ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-12-07 20:21:11.345407"], ["updated_at", "2016-12-07 20:21:11.345407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:21:11.349580"], ["updated_at", "2016-12-07 20:21:11.349580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-12-07 20:21:11.364045"], ["updated_at", "2016-12-07 20:21:11.364045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:21:11.366934"], ["updated_at", "2016-12-07 20:21:11.366934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.4ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-12-07 20:21:11.378402"], ["updated_at", "2016-12-07 20:21:11.378402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:21:11.380871"], ["updated_at", "2016-12-07 20:21:11.380871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-12-07 20:21:11.392453"], ["updated_at", "2016-12-07 20:21:11.392453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.3ms) Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-12-07 20:21:11.403988"], ["updated_at", "2016-12-07 20:21:11.403988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.4ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.8ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-12-07 20:21:11.448423"], ["updated_at", "2016-12-07 20:21:11.448423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.6ms) Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 1.1ms)  (0.2ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-12-07 20:21:11.467848"], ["updated_at", "2016-12-07 20:21:11.467848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.3ms) Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.8ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:21:11.474758"], ["updated_at", "2016-12-07 20:21:11.474758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 409 Conflict in 7ms (Views: 1.9ms | ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-07 20:21:11.492974"], ["updated_at", "2016-12-07 20:21:11.492974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-12-07 20:21:11.505055"], ["updated_at", "2016-12-07 20:21:11.505055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.4ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-12-07 20:21:11.520557"], ["updated_at", "2016-12-07 20:21:11.520557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-12-07 20:21:11.548074"], ["updated_at", "2016-12-07 20:21:11.548074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-12-07 20:21:11.560769"], ["updated_at", "2016-12-07 20:21:11.560769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-12-07 20:21:11.570023"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:21:11.575293"], ["updated_at", "2016-12-07 20:21:11.575293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-12-07 20:21:11.578595"], ["updated_at", "2016-12-07 20:21:11.578595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-07 20:21:11.590631"], ["updated_at", "2016-12-07 20:21:11.590631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-12-07 20:21:11.594438"], ["updated_at", "2016-12-07 20:21:11.594438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-12-07 20:21:11.608391"], ["updated_at", "2016-12-07 20:21:11.608391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-12-07 20:21:11.618968"], ["updated_at", "2016-12-07 20:21:11.618968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:11.632533"], ["updated_at", "2016-12-07 20:21:11.632533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-07 20:21:11.635593"], ["updated_at", "2016-12-07 20:21:11.635593"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.637371"], ["updated_at", "2016-12-07 20:21:11.637371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.638910"], ["updated_at", "2016-12-07 20:21:11.638910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-07 20:21:11.642753"], ["updated_at", "2016-12-07 20:21:11.642753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.644837"], ["updated_at", "2016-12-07 20:21:11.644837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-07 20:21:11.647783"], ["updated_at", "2016-12-07 20:21:11.647783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.650355"], ["updated_at", "2016-12-07 20:21:11.650355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-07 20:21:11.654217"], ["updated_at", "2016-12-07 20:21:11.654217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.655732"], ["updated_at", "2016-12-07 20:21:11.655732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:21:11.658578"], ["updated_at", "2016-12-07 20:21:11.658578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:21:11.644837"], ["updated_at", "2016-12-07 20:21:11.644837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.665550"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:21:11.650355"], ["updated_at", "2016-12-07 20:21:11.650355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.670866"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:21:11.655732"], ["updated_at", "2016-12-07 20:21:11.655732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.674959"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:21:11.677417"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:11.687450"], ["updated_at", "2016-12-07 20:21:11.687450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-12-07 20:21:11.689981"], ["updated_at", "2016-12-07 20:21:11.689981"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.691463"], ["updated_at", "2016-12-07 20:21:11.691463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.693665"], ["updated_at", "2016-12-07 20:21:11.693665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:21:11.700014"], ["updated_at", "2016-12-07 20:21:11.700014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:21:11.711872"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:11.720301"], ["updated_at", "2016-12-07 20:21:11.720301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-12-07 20:21:11.724632"], ["updated_at", "2016-12-07 20:21:11.724632"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.726270"], ["updated_at", "2016-12-07 20:21:11.726270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.728597"], ["updated_at", "2016-12-07 20:21:11.728597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-12-07 20:21:11.731523"], ["updated_at", "2016-12-07 20:21:11.731523"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.735105"], ["updated_at", "2016-12-07 20:21:11.735105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-12-07 20:21:11.738017"], ["updated_at", "2016-12-07 20:21:11.738017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.739436"], ["updated_at", "2016-12-07 20:21:11.739436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-12-07 20:21:11.741911"], ["updated_at", "2016-12-07 20:21:11.741911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.743342"], ["updated_at", "2016-12-07 20:21:11.743342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:21:11.745089"], ["updated_at", "2016-12-07 20:21:11.745089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:21:11.735105"], ["updated_at", "2016-12-07 20:21:11.735105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.752210"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:21:11.739436"], ["updated_at", "2016-12-07 20:21:11.739436"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.757015"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:21:11.743342"], ["updated_at", "2016-12-07 20:21:11.743342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.761284"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:21:11.763512"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:11.773269"], ["updated_at", "2016-12-07 20:21:11.773269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-12-07 20:21:11.780597"], ["updated_at", "2016-12-07 20:21:11.780597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:21:11.782462"], ["updated_at", "2016-12-07 20:21:11.782462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-12-07 20:21:11.785183"], ["updated_at", "2016-12-07 20:21:11.785183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:21:11.786701"], ["updated_at", "2016-12-07 20:21:11.786701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-12-07 20:21:11.789301"], ["updated_at", "2016-12-07 20:21:11.789301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:21:11.790592"], ["updated_at", "2016-12-07 20:21:11.790592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:21:11.801991"], ["updated_at", "2016-12-07 20:21:11.801991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:21:11.806075"], ["updated_at", "2016-12-07 20:21:11.806075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:21:11.810437"], ["updated_at", "2016-12-07 20:21:11.810437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:11.817784"], ["updated_at", "2016-12-07 20:21:11.817784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-12-07 20:21:11.821224"], ["updated_at", "2016-12-07 20:21:11.821224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-07 20:21:11.822818"], ["updated_at", "2016-12-07 20:21:11.822818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-12-07 20:21:11.826294"], ["updated_at", "2016-12-07 20:21:11.826294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-07 20:21:11.827814"], ["updated_at", "2016-12-07 20:21:11.827814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-12-07 20:21:11.830374"], ["updated_at", "2016-12-07 20:21:11.830374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-07 20:21:11.832113"], ["updated_at", "2016-12-07 20:21:11.832113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-12-07 20:21:11.836511"], ["updated_at", "2016-12-07 20:21:11.836511"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.838308"], ["updated_at", "2016-12-07 20:21:11.838308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (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 1 [["id", 1]] SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-07 20:21:11.844929"], ["updated_at", "2016-12-07 20:21:11.844929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-07 20:21:11.852636"], ["updated_at", "2016-12-07 20:21:11.852636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-07 20:21:11.857000"], ["updated_at", "2016-12-07 20:21:11.857000"]]  (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 1 [["post_id", 1], ["status", 0]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]  (0.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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:11.864054"], ["updated_at", "2016-12-07 20:21:11.864054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (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 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-12-07 20:21:11.873999"], ["updated_at", "2016-12-07 20:21:11.873999"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.875867"], ["updated_at", "2016-12-07 20:21:11.875867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.6ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:11.894146"], ["updated_at", "2016-12-07 20:21:11.894146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-12-07 20:21:11.896864"], ["updated_at", "2016-12-07 20:21:11.896864"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.899343"], ["updated_at", "2016-12-07 20:21:11.899343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.901694"], ["updated_at", "2016-12-07 20:21:11.901694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-12-07 20:21:11.904341"], ["updated_at", "2016-12-07 20:21:11.904341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.905778"], ["updated_at", "2016-12-07 20:21:11.905778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-12-07 20:21:11.908654"], ["updated_at", "2016-12-07 20:21:11.908654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.910572"], ["updated_at", "2016-12-07 20:21:11.910572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-12-07 20:21:11.913651"], ["updated_at", "2016-12-07 20:21:11.913651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.915568"], ["updated_at", "2016-12-07 20:21:11.915568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:21:11.920167"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:21:11.922930"], ["updated_at", "2016-12-07 20:21:11.922930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 516a7800-8fcc-4c65-8e6c-4d1f3de0d496) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:21:11.905778"], ["updated_at", "2016-12-07 20:21:11.905778"]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.932545"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:21:11.910572"], ["updated_at", "2016-12-07 20:21:11.910572"]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.937144"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:21:11.915568"], ["updated_at", "2016-12-07 20:21:11.915568"]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.942121"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:21:11.944500"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [516a7800-8fcc-4c65-8e6c-4d1f3de0d496] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.2ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:11.959607"], ["updated_at", "2016-12-07 20:21:11.959607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-12-07 20:21:11.962559"], ["updated_at", "2016-12-07 20:21:11.962559"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.964853"], ["updated_at", "2016-12-07 20:21:11.964853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:11.966863"], ["updated_at", "2016-12-07 20:21:11.966863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-12-07 20:21:11.969737"], ["updated_at", "2016-12-07 20:21:11.969737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.971436"], ["updated_at", "2016-12-07 20:21:11.971436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-12-07 20:21:11.974470"], ["updated_at", "2016-12-07 20:21:11.974470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.975932"], ["updated_at", "2016-12-07 20:21:11.975932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-12-07 20:21:11.978387"], ["updated_at", "2016-12-07 20:21:11.978387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:21:11.979749"], ["updated_at", "2016-12-07 20:21:11.979749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:21:11.983217"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:21:11.986820"], ["updated_at", "2016-12-07 20:21:11.986820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 4e910b8c-93d0-43c2-82c0-0a228a942e43) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:21:11.971436"], ["updated_at", "2016-12-07 20:21:11.971436"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:11.997005"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:21:11.975932"], ["updated_at", "2016-12-07 20:21:11.975932"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:12.004344"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:21:11.979749"], ["updated_at", "2016-12-07 20:21:11.979749"]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:12.018516"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:21:12.021167"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [4e910b8c-93d0-43c2-82c0-0a228a942e43] Performed Pulitzer::CloneVersionJob from Inline(default) in 35.35ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:21:12.027874"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:21:12.030940"], ["updated_at", "2016-12-07 20:21:12.030940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ddbc7924-a310-4043-8c22-4927ba0cbad4) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:21:11.971436"], ["updated_at", "2016-12-07 20:21:11.971436"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:21:12.041717"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:21:11.975932"], ["updated_at", "2016-12-07 20:21:11.975932"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:21:12.046234"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:21:11.979749"], ["updated_at", "2016-12-07 20:21:11.979749"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-07 20:21:12.051284"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:21:12.053962"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ddbc7924-a310-4043-8c22-4927ba0cbad4] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.19ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:12.068978"], ["updated_at", "2016-12-07 20:21:12.068978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-12-07 20:21:12.072174"], ["updated_at", "2016-12-07 20:21:12.072174"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.074274"], ["updated_at", "2016-12-07 20:21:12.074274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.076066"], ["updated_at", "2016-12-07 20:21:12.076066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-12-07 20:21:12.078799"], ["updated_at", "2016-12-07 20:21:12.078799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:21:12.080296"], ["updated_at", "2016-12-07 20:21:12.080296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-12-07 20:21:12.084322"], ["updated_at", "2016-12-07 20:21:12.084322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:21:12.086038"], ["updated_at", "2016-12-07 20:21:12.086038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-12-07 20:21:12.089367"], ["updated_at", "2016-12-07 20:21:12.089367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:21:12.090814"], ["updated_at", "2016-12-07 20:21:12.090814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:21:12.093320"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:21:12.095692"], ["updated_at", "2016-12-07 20:21:12.095692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2d3d6f33-1052-4e7f-aca6-1dd2d098bda2) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:21:12.080296"], ["updated_at", "2016-12-07 20:21:12.080296"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:12.105829"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:21:12.086038"], ["updated_at", "2016-12-07 20:21:12.086038"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:12.110107"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:21:12.090814"], ["updated_at", "2016-12-07 20:21:12.090814"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:12.114352"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:21:12.118724"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2d3d6f33-1052-4e7f-aca6-1dd2d098bda2] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.56ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-07 20:21:12.125271"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-12-07 20:21:12.136296"], ["updated_at", "2016-12-07 20:21:12.136296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:12.138902"], ["updated_at", "2016-12-07 20:21:12.138902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-12-07 20:21:12.141760"], ["updated_at", "2016-12-07 20:21:12.141760"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.143502"], ["updated_at", "2016-12-07 20:21:12.143502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.144963"], ["updated_at", "2016-12-07 20:21:12.144963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-12-07 20:21:12.147328"], ["updated_at", "2016-12-07 20:21:12.147328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-07 20:21:12.149272"], ["updated_at", "2016-12-07 20:21:12.149272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 32' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 32"], ["created_at", "2016-12-07 20:21:12.151934"], ["updated_at", "2016-12-07 20:21:12.151934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-07 20:21:12.153535"], ["updated_at", "2016-12-07 20:21:12.153535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 33' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 33"], ["created_at", "2016-12-07 20:21:12.156249"], ["updated_at", "2016-12-07 20:21:12.156249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-07 20:21:12.158085"], ["updated_at", "2016-12-07 20:21:12.158085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:21:12.164385"], ["updated_at", "2016-12-07 20:21:12.164385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-12-07 20:21:12.167368"], ["updated_at", "2016-12-07 20:21:12.167368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:21:12.170271"], ["updated_at", "2016-12-07 20:21:12.170271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-07 20:21:12.175378"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-07 20:21:12.177455"], ["updated_at", "2016-12-07 20:21:12.177455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 66ac9ed1-9b61-407c-aded-2dcae2a51b07) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:21:12.149272"], ["updated_at", "2016-12-07 20:21:12.149272"]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:12.187836"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-07 20:21:12.153535"], ["updated_at", "2016-12-07 20:21:12.153535"]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:12.193310"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-07 20:21:12.158085"], ["updated_at", "2016-12-07 20:21:12.158085"]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-07 20:21:12.197901"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:21:12.201157"], ["updated_at", "2016-12-07 20:21:12.201157"]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-07 20:21:12.202645"], ["updated_at", "2016-12-07 20:21:12.202645"]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-07 20:21:12.204327"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [66ac9ed1-9b61-407c-aded-2dcae2a51b07] Performed Pulitzer::CloneVersionJob from Inline(default) in 28.17ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 34' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 34"], ["created_at", "2016-12-07 20:21:12.215308"], ["updated_at", "2016-12-07 20:21:12.215308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 35"], ["created_at", "2016-12-07 20:21:12.226033"], ["updated_at", "2016-12-07 20:21:12.226033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 36' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 36"], ["created_at", "2016-12-07 20:21:12.230755"], ["updated_at", "2016-12-07 20:21:12.230755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 37' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 37"], ["created_at", "2016-12-07 20:21:12.236030"], ["updated_at", "2016-12-07 20:21:12.236030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:21:12.241797"], ["updated_at", "2016-12-07 20:21:12.241797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 32"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:21:12.243848"], ["updated_at", "2016-12-07 20:21:12.243848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-07 20:21:12.250995"], ["updated_at", "2016-12-07 20:21:12.250995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 33"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-07 20:21:12.253050"], ["updated_at", "2016-12-07 20:21:12.253050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 38"], ["created_at", "2016-12-07 20:21:12.257492"], ["updated_at", "2016-12-07 20:21:12.257492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 39' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 39"], ["created_at", "2016-12-07 20:21:12.262109"], ["updated_at", "2016-12-07 20:21:12.262109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-07 20:21:12.268839"], ["updated_at", "2016-12-07 20:21:12.268839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:12.407149"], ["updated_at", "2016-12-07 20:21:12.407149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:12.428073"], ["updated_at", "2016-12-07 20:21:12.428073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-12-07 20:21:12.431091"], ["updated_at", "2016-12-07 20:21:12.431091"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.433943"], ["updated_at", "2016-12-07 20:21:12.433943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.436820"], ["updated_at", "2016-12-07 20:21:12.436820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:21:12.438712"], ["updated_at", "2016-12-07 20:21:12.438712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 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.2ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:12.445752"], ["updated_at", "2016-12-07 20:21:12.445752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-12-07 20:21:12.448984"], ["updated_at", "2016-12-07 20:21:12.448984"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.453740"], ["updated_at", "2016-12-07 20:21:12.453740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:12.458243"], ["updated_at", "2016-12-07 20:21:12.458243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-12-07 20:21:12.461348"], ["updated_at", "2016-12-07 20:21:12.461348"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.463218"], ["updated_at", "2016-12-07 20:21:12.463218"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-12-07 20:21:12.466085"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-12-07 20:21:12.471734"], ["updated_at", "2016-12-07 20:21:12.471734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:12.474508"], ["updated_at", "2016-12-07 20:21:12.474508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-12-07 20:21:12.476942"], ["updated_at", "2016-12-07 20:21:12.476942"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.478903"], ["updated_at", "2016-12-07 20:21:12.478903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.481411"], ["updated_at", "2016-12-07 20:21:12.481411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:12.508713"], ["updated_at", "2016-12-07 20:21:12.508713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 40"], ["created_at", "2016-12-07 20:21:12.513202"], ["updated_at", "2016-12-07 20:21:12.513202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-12-07 20:21:12.574537"], ["updated_at", "2016-12-07 20:21:12.574537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:21:12.588576"], ["updated_at", "2016-12-07 20:21:12.588576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-12-07 20:21:12.591590"], ["updated_at", "2016-12-07 20:21:12.591590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:12.600318"], ["updated_at", "2016-12-07 20:21:12.600318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-17"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 17"], ["post_type_id", 1], ["slug", "winterfell-news-17"], ["created_at", "2016-12-07 20:21:12.604099"], ["updated_at", "2016-12-07 20:21:12.604099"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.605785"], ["updated_at", "2016-12-07 20:21:12.605785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-07 20:21:12.607485"], ["updated_at", "2016-12-07 20:21:12.607485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-12-07 20:21:12.610026"], ["updated_at", "2016-12-07 20:21:12.610026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:21:12.612673"], ["updated_at", "2016-12-07 20:21:12.612673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:21:12.622612"], ["updated_at", "2016-12-07 20:21:12.622612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-12-07 20:21:12.625490"], ["updated_at", "2016-12-07 20:21:12.625490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-12-07 20:21:12.631138"], ["updated_at", "2016-12-07 20:21:12.631138"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-12-07 20:21:12.636028"], ["updated_at", "2016-12-07 20:21:12.636028"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:21:12.637042' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-12-07 20:21:12.639478"], ["updated_at", "2016-12-07 20:21:12.639478"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:21:12.640273' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:21:12.646882"], ["updated_at", "2016-12-07 20:21:12.646882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-12-07 20:21:12.649513"], ["updated_at", "2016-12-07 20:21:12.649513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:21:12.652722"], ["updated_at", "2016-12-07 20:21:12.652722"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:21:12.654052' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:21:12.661188"], ["updated_at", "2016-12-07 20:21:12.661188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-12-07 20:21:12.672973"], ["updated_at", "2016-12-07 20:21:12.672973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:21:12.676926"], ["updated_at", "2016-12-07 20:21:12.676926"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:21:12.678220' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-12-07 20:21:12.683099"], ["updated_at", "2016-12-07 20:21:12.683099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-12-07 20:21:12.686305"], ["updated_at", "2016-12-07 20:21:12.686305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-07 20:21:12.688991"], ["updated_at", "2016-12-07 20:21:12.688991"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-07 20:21:12.689936' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:12.695588"], ["updated_at", "2016-12-07 20:21:12.695588"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-18"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 18"], ["post_type_id", 1], ["slug", "winterfell-news-18"], ["created_at", "2016-12-07 20:21:12.700792"], ["updated_at", "2016-12-07 20:21:12.700792"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.703316"], ["updated_at", "2016-12-07 20:21:12.703316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-12-07 20:21:12.721941"], ["updated_at", "2016-12-07 20:21:12.721941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-07 20:21:12.724908"], ["updated_at", "2016-12-07 20:21:12.724908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-19"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 19"], ["post_type_id", 1], ["slug", "winterfell-news-19"], ["created_at", "2016-12-07 20:21:12.727216"], ["updated_at", "2016-12-07 20:21:12.727216"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.728768"], ["updated_at", "2016-12-07 20:21:12.728768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-07 20:21:12.730882"], ["updated_at", "2016-12-07 20:21:12.730882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-07 20:21:12.733452"], ["updated_at", "2016-12-07 20:21:12.733452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) 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.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';  (0.7ms) 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.8ms) 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';  (0.8ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.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.6ms) 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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-15 19:18:44.965628"], ["updated_at", "2016-12-15 19:18:44.965628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#new as HTML Parameters: {"post_type_id"=>"1"} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (8.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (31.0ms) Completed 200 OK in 71ms (Views: 44.6ms | ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-15 19:18:45.054095"], ["updated_at", "2016-12-15 19:18:45.054095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#create as HTML Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.0ms) Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 0.5ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-15 19:18:45.076264"], ["updated_at", "2016-12-15 19:18:45.076264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (1.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (11.1ms) Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-15 19:18:45.100627"], ["updated_at", "2016-12-15 19:18:45.100627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#update as HTML Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.4ms) Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-12-15 19:18:45.122478"], ["updated_at", "2016-12-15 19:18:45.122478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML Parameters: {"id"=>"1"} Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]] Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.4ms) Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-15 19:18:45.141203"], ["updated_at", "2016-12-15 19:18:45.141203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#new as HTML Parameters: {"partial"=>{"free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms) Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (13.8ms) Completed 200 OK in 26ms (Views: 17.9ms | ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-15 19:18:45.185774"], ["updated_at", "2016-12-15 19:18:45.185774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#create as HTML Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (10.2ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.1ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (11.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (13.9ms) Completed 200 OK in 36ms (Views: 15.3ms | ActiveRecord: 11.1ms) Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-15 19:18:45.235620"], ["updated_at", "2016-12-15 19:18:45.235620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.0ms) Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["post_type_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (13.6ms) Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-15 19:18:45.263398"], ["updated_at", "2016-12-15 19:18:45.263398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-12-15 19:18:45.266978"], ["updated_at", "2016-12-15 19:18:45.266978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::PartialsController#update as HTML Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms) Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.0ms) Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.4ms) Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:45.297221"], ["updated_at", "2016-12-15 19:18:45.297221"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-15 19:18:45.399790"], ["updated_at", "2016-12-15 19:18:45.399790"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:45.402639"], ["updated_at", "2016-12-15 19:18:45.402639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:45.404764"], ["updated_at", "2016-12-15 19:18:45.404764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-15 19:18:45.416099"], ["updated_at", "2016-12-15 19:18:45.416099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:18:45.418529"], ["updated_at", "2016-12-15 19:18:45.418529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-15 19:18:45.421786"], ["updated_at", "2016-12-15 19:18:45.421786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:18:45.423287"], ["updated_at", "2016-12-15 19:18:45.423287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-15 19:18:45.425887"], ["updated_at", "2016-12-15 19:18:45.425887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:18:45.427446"], ["updated_at", "2016-12-15 19:18:45.427446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:18:45.439753"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? [["post_id", 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", 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]] 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]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 32ms (Views: 0.2ms | ActiveRecord: 2.0ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:45.471858"], ["updated_at", "2016-12-15 19:18:45.471858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-15 19:18:45.475113"], ["updated_at", "2016-12-15 19:18:45.475113"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:45.477403"], ["updated_at", "2016-12-15 19:18:45.477403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:45.479282"], ["updated_at", "2016-12-15 19:18:45.479282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-15 19:18:45.481977"], ["updated_at", "2016-12-15 19:18:45.481977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:18:45.483581"], ["updated_at", "2016-12-15 19:18:45.483581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-15 19:18:45.486363"], ["updated_at", "2016-12-15 19:18:45.486363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:18:45.487859"], ["updated_at", "2016-12-15 19:18:45.487859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-15 19:18:45.490345"], ["updated_at", "2016-12-15 19:18:45.490345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:18:45.491787"], ["updated_at", "2016-12-15 19:18:45.491787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:18:45.498972"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:18:45.501325"], ["updated_at", "2016-12-15 19:18:45.501325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: e6579112-de7f-46ef-a78e-c1cf9f9fc376) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] Pulitzer::Version Load (0.6ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:18:45.483581"], ["updated_at", "2016-12-15 19:18:45.483581"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:45.515736"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:18:45.487859"], ["updated_at", "2016-12-15 19:18:45.487859"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:45.520510"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:18:45.491787"], ["updated_at", "2016-12-15 19:18:45.491787"]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:45.525614"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:18:45.528213"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [e6579112-de7f-46ef-a78e-c1cf9f9fc376] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.36ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:18:45.539257"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.7ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (5.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (7.3ms) Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (4.4ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (36.6ms) Completed 200 OK in 46ms (Views: 0.4ms | ActiveRecord: 1.0ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:45.593013"], ["updated_at", "2016-12-15 19:18:45.593013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-15 19:18:45.596020"], ["updated_at", "2016-12-15 19:18:45.596020"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:45.598184"], ["updated_at", "2016-12-15 19:18:45.598184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:45.600085"], ["updated_at", "2016-12-15 19:18:45.600085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-15 19:18:45.603256"], ["updated_at", "2016-12-15 19:18:45.603256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:18:45.604962"], ["updated_at", "2016-12-15 19:18:45.604962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-15 19:18:45.607718"], ["updated_at", "2016-12-15 19:18:45.607718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:18:45.609208"], ["updated_at", "2016-12-15 19:18:45.609208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-15 19:18:45.612502"], ["updated_at", "2016-12-15 19:18:45.612502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:18:45.614261"], ["updated_at", "2016-12-15 19:18:45.614261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:18:45.618362"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:18:45.620815"], ["updated_at", "2016-12-15 19:18:45.620815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 565381d3-74aa-48d3-8f85-2f154787a64c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:18:45.604962"], ["updated_at", "2016-12-15 19:18:45.604962"]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:45.629928"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:18:45.609208"], ["updated_at", "2016-12-15 19:18:45.609208"]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:45.634226"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:18:45.614261"], ["updated_at", "2016-12-15 19:18:45.614261"]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:45.640293"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:18:45.643125"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [565381d3-74aa-48d3-8f85-2f154787a64c] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.2ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:18:45.655866"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:18:45.659151"], ["updated_at", "2016-12-15 19:18:45.659151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 68d972fd-7b2e-4f85-a91b-d99495d81278) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:18:45.604962"], ["updated_at", "2016-12-15 19:18:45.604962"]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:18:45.667189"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:18:45.609208"], ["updated_at", "2016-12-15 19:18:45.609208"]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:18:45.671590"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:18:45.614261"], ["updated_at", "2016-12-15 19:18:45.614261"]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:18:45.676236"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:18:45.678575"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68d972fd-7b2e-4f85-a91b-d99495d81278] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.03ms Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (6.3ms) Completed 200 OK in 36ms (Views: 0.2ms | ActiveRecord: 2.1ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-12-15 19:18:45.700726"], ["updated_at", "2016-12-15 19:18:45.700726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 2"], ["hierarchical", "t"], ["created_at", "2016-12-15 19:18:45.705102"], ["updated_at", "2016-12-15 19:18:45.705102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-12-15 19:18:45.720092"], ["updated_at", "2016-12-15 19:18:45.720092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 4"], ["hierarchical", "t"], ["created_at", "2016-12-15 19:18:45.722440"], ["updated_at", "2016-12-15 19:18:45.722440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 5' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 5"], ["created_at", "2016-12-15 19:18:45.733626"], ["updated_at", "2016-12-15 19:18:45.733626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 6"], ["hierarchical", "t"], ["created_at", "2016-12-15 19:18:45.737120"], ["updated_at", "2016-12-15 19:18:45.737120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#index as HTML Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_index.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' AND "pulitzer_tags"."parent_id" IS NULL  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 7' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 7"], ["created_at", "2016-12-15 19:18:45.749228"], ["updated_at", "2016-12-15 19:18:45.749228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 8' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 8"], ["created_at", "2016-12-15 19:18:45.761221"], ["updated_at", "2016-12-15 19:18:45.761221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#show as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>true}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_hierarchical.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction Processing by Pulitzer::TagsController#new as HTML Parameters: {"tag"=>{"hierarchical"=>false}} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 9"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 9' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 9"], ["created_at", "2016-12-15 19:18:45.810406"], ["updated_at", "2016-12-15 19:18:45.810406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"The north 10"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 10' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 10"], ["created_at", "2016-12-15 19:18:45.825058"], ["updated_at", "2016-12-15 19:18:45.825058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show_wrapper.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-15 19:18:45.830812"], ["updated_at", "2016-12-15 19:18:45.830812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags" Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.2ms) Completed 409 Conflict in 14ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "pulitzer_tags"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "awesomesauce"], ["created_at", "2016-12-15 19:18:45.857210"], ["updated_at", "2016-12-15 19:18:45.857210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#create as HTML Parameters: {"tag"=>{"name"=>"awesomesauce"}}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'awesomesauce' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_new_flat.html.erb (0.3ms) Completed 409 Conflict in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 13' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 13"], ["created_at", "2016-12-15 19:18:45.873399"], ["updated_at", "2016-12-15 19:18:45.873399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 14' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 14"], ["created_at", "2016-12-15 19:18:45.885107"], ["updated_at", "2016-12-15 19:18:45.885107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#edit as HTML Parameters: {"id"=>"1"} Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.4ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 15' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 15"], ["created_at", "2016-12-15 19:18:45.909921"], ["updated_at", "2016-12-15 19:18:45.909921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 16"}, "id"=>"1"} Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 17' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 17"], ["created_at", "2016-12-15 19:18:45.921445"], ["updated_at", "2016-12-15 19:18:45.921445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"The north 18"}, "id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'The north 18' AND "pulitzer_tags"."id" != 1) LIMIT 1 SQL (0.1ms) UPDATE "pulitzer_tags" SET "name" = ?, "updated_at" = ? WHERE "pulitzer_tags"."id" = ? [["name", "The north 18"], ["updated_at", "2016-12-15 19:18:45.929654"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_show.html.erb (0.2ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-15 19:18:45.936203"], ["updated_at", "2016-12-15 19:18:45.936203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 20"], ["created_at", "2016-12-15 19:18:45.939811"], ["updated_at", "2016-12-15 19:18:45.939811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'sadpanda' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sadpanda"], ["created_at", "2016-12-15 19:18:45.951026"], ["updated_at", "2016-12-15 19:18:45.951026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 22"], ["created_at", "2016-12-15 19:18:45.954972"], ["updated_at", "2016-12-15 19:18:45.954972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#update as HTML Parameters: {"tag"=>{"name"=>"sadpanda"}, "id"=>"2"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE ("pulitzer_tags"."name" = 'sadpanda' AND "pulitzer_tags"."id" != 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/tags/_form.html.erb (0.2ms) Completed 409 Conflict in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 23' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 23"], ["created_at", "2016-12-15 19:18:45.968254"], ["updated_at", "2016-12-15 19:18:45.968254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 24' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 24"], ["created_at", "2016-12-15 19:18:45.977707"], ["updated_at", "2016-12-15 19:18:45.977707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::TagsController#destroy as HTML Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? [["parent_id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:45.991400"], ["updated_at", "2016-12-15 19:18:45.991400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-15 19:18:45.994112"], ["updated_at", "2016-12-15 19:18:45.994112"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:45.995709"], ["updated_at", "2016-12-15 19:18:45.995709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:45.997107"], ["updated_at", "2016-12-15 19:18:45.997107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-15 19:18:45.999574"], ["updated_at", "2016-12-15 19:18:45.999574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.002149"], ["updated_at", "2016-12-15 19:18:46.002149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-15 19:18:46.007220"], ["updated_at", "2016-12-15 19:18:46.007220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.010483"], ["updated_at", "2016-12-15 19:18:46.010483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-15 19:18:46.013805"], ["updated_at", "2016-12-15 19:18:46.013805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.015350"], ["updated_at", "2016-12-15 19:18:46.015350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:18:46.018230"], ["updated_at", "2016-12-15 19:18:46.018230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:18:46.002149"], ["updated_at", "2016-12-15 19:18:46.002149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.025209"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:18:46.010483"], ["updated_at", "2016-12-15 19:18:46.010483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.031072"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:18:46.015350"], ["updated_at", "2016-12-15 19:18:46.015350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.035875"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:18:46.038338"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.047515"], ["updated_at", "2016-12-15 19:18:46.047515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-12-15 19:18:46.050084"], ["updated_at", "2016-12-15 19:18:46.050084"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.051547"], ["updated_at", "2016-12-15 19:18:46.051547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.052874"], ["updated_at", "2016-12-15 19:18:46.052874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:18:46.060884"], ["updated_at", "2016-12-15 19:18:46.060884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:18:46.074430"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.084206"], ["updated_at", "2016-12-15 19:18:46.084206"]]  (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 1 [["slug", "winterfell-news-6"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-12-15 19:18:46.087731"], ["updated_at", "2016-12-15 19:18:46.087731"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.089720"], ["updated_at", "2016-12-15 19:18:46.089720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.091455"], ["updated_at", "2016-12-15 19:18:46.091455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-12-15 19:18:46.094082"], ["updated_at", "2016-12-15 19:18:46.094082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.095576"], ["updated_at", "2016-12-15 19:18:46.095576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-12-15 19:18:46.098110"], ["updated_at", "2016-12-15 19:18:46.098110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.099465"], ["updated_at", "2016-12-15 19:18:46.099465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-12-15 19:18:46.102180"], ["updated_at", "2016-12-15 19:18:46.102180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.103635"], ["updated_at", "2016-12-15 19:18:46.103635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:18:46.105737"], ["updated_at", "2016-12-15 19:18:46.105737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::CloneVersion !!! /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:18:46.095576"], ["updated_at", "2016-12-15 19:18:46.095576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.112130"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:18:46.099465"], ["updated_at", "2016-12-15 19:18:46.099465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.116220"], ["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:18:46.103635"], ["updated_at", "2016-12-15 19:18:46.103635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.121482"], ["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:18:46.124184"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.135701"], ["updated_at", "2016-12-15 19:18:46.135701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-12-15 19:18:46.143916"], ["updated_at", "2016-12-15 19:18:46.143916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-15 19:18:46.145861"], ["updated_at", "2016-12-15 19:18:46.145861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-12-15 19:18:46.148943"], ["updated_at", "2016-12-15 19:18:46.148943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-15 19:18:46.150386"], ["updated_at", "2016-12-15 19:18:46.150386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-12-15 19:18:46.153046"], ["updated_at", "2016-12-15 19:18:46.153046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-15 19:18:46.154356"], ["updated_at", "2016-12-15 19:18:46.154356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-15 19:18:46.165177"], ["updated_at", "2016-12-15 19:18:46.165177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-15 19:18:46.168602"], ["updated_at", "2016-12-15 19:18:46.168602"]]  (0.1ms) RELEASE SAVEPOINT active_record_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 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-15 19:18:46.172792"], ["updated_at", "2016-12-15 19:18:46.172792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.179915"], ["updated_at", "2016-12-15 19:18:46.179915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-12-15 19:18:46.183122"], ["updated_at", "2016-12-15 19:18:46.183122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-12-15 19:18:46.184513"], ["updated_at", "2016-12-15 19:18:46.184513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-12-15 19:18:46.187026"], ["updated_at", "2016-12-15 19:18:46.187026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-12-15 19:18:46.188511"], ["updated_at", "2016-12-15 19:18:46.188511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-12-15 19:18:46.190916"], ["updated_at", "2016-12-15 19:18:46.190916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-12-15 19:18:46.192415"], ["updated_at", "2016-12-15 19:18:46.192415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-12-15 19:18:46.196315"], ["updated_at", "2016-12-15 19:18:46.196315"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.198047"], ["updated_at", "2016-12-15 19:18:46.198047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-12-15 19:18:46.204108"], ["updated_at", "2016-12-15 19:18:46.204108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-12-15 19:18:46.208666"], ["updated_at", "2016-12-15 19:18:46.208666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-12-15 19:18:46.212734"], ["updated_at", "2016-12-15 19:18:46.212734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::FreeFormSectionType Load (0.2ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.222098"], ["updated_at", "2016-12-15 19:18:46.222098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-12-15 19:18:46.229965"], ["updated_at", "2016-12-15 19:18:46.229965"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.231611"], ["updated_at", "2016-12-15 19:18:46.231611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostTypeContentElementType Load (0.0ms) SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]] Pulitzer::FreeFormSectionType Load (0.0ms) 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 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.246631"], ["updated_at", "2016-12-15 19:18:46.246631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 8"], ["post_type_id", 1], ["slug", "winterfell-news-8"], ["created_at", "2016-12-15 19:18:46.249056"], ["updated_at", "2016-12-15 19:18:46.249056"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.250541"], ["updated_at", "2016-12-15 19:18:46.250541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.252232"], ["updated_at", "2016-12-15 19:18:46.252232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-12-15 19:18:46.254925"], ["updated_at", "2016-12-15 19:18:46.254925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.256919"], ["updated_at", "2016-12-15 19:18:46.256919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-12-15 19:18:46.260536"], ["updated_at", "2016-12-15 19:18:46.260536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.262056"], ["updated_at", "2016-12-15 19:18:46.262056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-12-15 19:18:46.265134"], ["updated_at", "2016-12-15 19:18:46.265134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.266716"], ["updated_at", "2016-12-15 19:18:46.266716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:18:46.270038"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:18:46.272665"], ["updated_at", "2016-12-15 19:18:46.272665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: a70a663d-c533-44a5-b1d0-1e374fd2ed7b) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 16"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:18:46.256919"], ["updated_at", "2016-12-15 19:18:46.256919"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.280798"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 17"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:18:46.262056"], ["updated_at", "2016-12-15 19:18:46.262056"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.284997"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 18"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:18:46.266716"], ["updated_at", "2016-12-15 19:18:46.266716"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.289942"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:18:46.292326"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a70a663d-c533-44a5-b1d0-1e374fd2ed7b] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.94ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.307149"], ["updated_at", "2016-12-15 19:18:46.307149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-12-15 19:18:46.310554"], ["updated_at", "2016-12-15 19:18:46.310554"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.312434"], ["updated_at", "2016-12-15 19:18:46.312434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.314293"], ["updated_at", "2016-12-15 19:18:46.314293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-12-15 19:18:46.317037"], ["updated_at", "2016-12-15 19:18:46.317037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.318771"], ["updated_at", "2016-12-15 19:18:46.318771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-12-15 19:18:46.321551"], ["updated_at", "2016-12-15 19:18:46.321551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.322870"], ["updated_at", "2016-12-15 19:18:46.322870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-12-15 19:18:46.325131"], ["updated_at", "2016-12-15 19:18:46.325131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.335931"], ["updated_at", "2016-12-15 19:18:46.335931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:18:46.338664"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:18:46.342148"], ["updated_at", "2016-12-15 19:18:46.342148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 68c1d052-5abf-46f3-96e5-7fbbbb581550) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:18:46.318771"], ["updated_at", "2016-12-15 19:18:46.318771"]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.351546"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:18:46.322870"], ["updated_at", "2016-12-15 19:18:46.322870"]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.357888"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:18:46.335931"], ["updated_at", "2016-12-15 19:18:46.335931"]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.363134"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:18:46.365599"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [68c1d052-5abf-46f3-96e5-7fbbbb581550] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.28ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:18:46.372874"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:18:46.377088"], ["updated_at", "2016-12-15 19:18:46.377088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 2eae02d2-e1e6-4612-938b-a3828beeac97) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 19"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:18:46.318771"], ["updated_at", "2016-12-15 19:18:46.318771"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:18:46.386894"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:18:46.322870"], ["updated_at", "2016-12-15 19:18:46.322870"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:18:46.391468"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 21"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:18:46.335931"], ["updated_at", "2016-12-15 19:18:46.335931"]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:18:46.395773"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:18:46.398054"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [2eae02d2-e1e6-4612-938b-a3828beeac97] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.66ms Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]  (1.2ms) 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.412324"], ["updated_at", "2016-12-15 19:18:46.412324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-12-15 19:18:46.415364"], ["updated_at", "2016-12-15 19:18:46.415364"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.417200"], ["updated_at", "2016-12-15 19:18:46.417200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.418765"], ["updated_at", "2016-12-15 19:18:46.418765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-12-15 19:18:46.421209"], ["updated_at", "2016-12-15 19:18:46.421209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.422728"], ["updated_at", "2016-12-15 19:18:46.422728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 29"], ["created_at", "2016-12-15 19:18:46.425572"], ["updated_at", "2016-12-15 19:18:46.425572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.427253"], ["updated_at", "2016-12-15 19:18:46.427253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 30' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 30"], ["created_at", "2016-12-15 19:18:46.429881"], ["updated_at", "2016-12-15 19:18:46.429881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.431254"], ["updated_at", "2016-12-15 19:18:46.431254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:18:46.433489"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:18:46.435963"], ["updated_at", "2016-12-15 19:18:46.435963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 73e2c102-0e9a-42d4-b953-e05b5a1688f0) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 22"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:18:46.422728"], ["updated_at", "2016-12-15 19:18:46.422728"]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.447140"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 23"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:18:46.427253"], ["updated_at", "2016-12-15 19:18:46.427253"]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.452916"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 24"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:18:46.431254"], ["updated_at", "2016-12-15 19:18:46.431254"]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.459184"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:18:46.462318"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [73e2c102-0e9a-42d4-b953-e05b5a1688f0] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.92ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:18:46.468591"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The North Remembers' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The North Remembers"], ["created_at", "2016-12-15 19:18:46.480501"], ["updated_at", "2016-12-15 19:18:46.480501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.483373"], ["updated_at", "2016-12-15 19:18:46.483373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-12-15 19:18:46.485675"], ["updated_at", "2016-12-15 19:18:46.485675"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.487676"], ["updated_at", "2016-12-15 19:18:46.487676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.489491"], ["updated_at", "2016-12-15 19:18:46.489491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 31"], ["created_at", "2016-12-15 19:18:46.492523"], ["updated_at", "2016-12-15 19:18:46.492523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.494247"], ["updated_at", "2016-12-15 19:18:46.494247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 32' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 32"], ["created_at", "2016-12-15 19:18:46.497908"], ["updated_at", "2016-12-15 19:18:46.497908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.499469"], ["updated_at", "2016-12-15 19:18:46.499469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 33"], ["created_at", "2016-12-15 19:18:46.502091"], ["updated_at", "2016-12-15 19:18:46.502091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.504708"], ["updated_at", "2016-12-15 19:18:46.504708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.514058"], ["updated_at", "2016-12-15 19:18:46.514058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The South Forgets' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The South Forgets"], ["created_at", "2016-12-15 19:18:46.517367"], ["updated_at", "2016-12-15 19:18:46.517367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-15 19:18:46.520461"], ["updated_at", "2016-12-15 19:18:46.520461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:18:46.524443"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:18:46.526241"], ["updated_at", "2016-12-15 19:18:46.526241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 25"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:18:46.494247"], ["updated_at", "2016-12-15 19:18:46.494247"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.535675"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 26"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:18:46.499469"], ["updated_at", "2016-12-15 19:18:46.499469"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.541823"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 27"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:18:46.504708"], ["updated_at", "2016-12-15 19:18:46.504708"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:18:46.547186"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] SQL (0.0ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-15 19:18:46.550360"], ["updated_at", "2016-12-15 19:18:46.550360"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 2], ["label_type", "Pulitzer::Tag"], ["version_id", 3], ["created_at", "2016-12-15 19:18:46.552003"], ["updated_at", "2016-12-15 19:18:46.552003"]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:18:46.553629"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [6dcf9e5b-312f-4c55-9bda-bdbbb9f9fee6] Performed Pulitzer::CloneVersionJob from Inline(default) in 28.85ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 34' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 34"], ["created_at", "2016-12-15 19:18:46.568307"], ["updated_at", "2016-12-15 19:18:46.568307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 35' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 35"], ["created_at", "2016-12-15 19:18:46.580926"], ["updated_at", "2016-12-15 19:18:46.580926"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 36' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 36"], ["created_at", "2016-12-15 19:18:46.587930"], ["updated_at", "2016-12-15 19:18:46.587930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 37' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 37"], ["created_at", "2016-12-15 19:18:46.594093"], ["updated_at", "2016-12-15 19:18:46.594093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-15 19:18:46.601515"], ["updated_at", "2016-12-15 19:18:46.601515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 32"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:18:46.604466"], ["updated_at", "2016-12-15 19:18:46.604466"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-12-15 19:18:46.611460"], ["updated_at", "2016-12-15 19:18:46.611460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 33"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:18:46.613376"], ["updated_at", "2016-12-15 19:18:46.613376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 38"], ["created_at", "2016-12-15 19:18:46.619342"], ["updated_at", "2016-12-15 19:18:46.619342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 39' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 39"], ["created_at", "2016-12-15 19:18:46.624660"], ["updated_at", "2016-12-15 19:18:46.624660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-12-15 19:18:46.631428"], ["updated_at", "2016-12-15 19:18:46.631428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.5ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.828309"], ["updated_at", "2016-12-15 19:18:46.828309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.844136"], ["updated_at", "2016-12-15 19:18:46.844136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-12-15 19:18:46.847310"], ["updated_at", "2016-12-15 19:18:46.847310"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.849513"], ["updated_at", "2016-12-15 19:18:46.849513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.851603"], ["updated_at", "2016-12-15 19:18:46.851603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-15 19:18:46.853471"], ["updated_at", "2016-12-15 19:18:46.853471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.5ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.859925"], ["updated_at", "2016-12-15 19:18:46.859925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-14"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 14"], ["post_type_id", 1], ["slug", "winterfell-news-14"], ["created_at", "2016-12-15 19:18:46.863906"], ["updated_at", "2016-12-15 19:18:46.863906"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.865963"], ["updated_at", "2016-12-15 19:18:46.865963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.873422"], ["updated_at", "2016-12-15 19:18:46.873422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-15"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 15"], ["post_type_id", 1], ["slug", "winterfell-news-15"], ["created_at", "2016-12-15 19:18:46.878117"], ["updated_at", "2016-12-15 19:18:46.878117"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.880770"], ["updated_at", "2016-12-15 19:18:46.880770"]]  (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" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]] SQL (0.1ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-12-15 19:18:46.884293"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 25' LIMIT 1 SQL (0.4ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 25"], ["created_at", "2016-12-15 19:18:46.891277"], ["updated_at", "2016-12-15 19:18:46.891277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.896484"], ["updated_at", "2016-12-15 19:18:46.896484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-16"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 16"], ["post_type_id", 1], ["slug", "winterfell-news-16"], ["created_at", "2016-12-15 19:18:46.899501"], ["updated_at", "2016-12-15 19:18:46.899501"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.901554"], ["updated_at", "2016-12-15 19:18:46.901554"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:46.905335"], ["updated_at", "2016-12-15 19:18:46.905335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:46.934327"], ["updated_at", "2016-12-15 19:18:46.934327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 40' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 40"], ["created_at", "2016-12-15 19:18:46.939926"], ["updated_at", "2016-12-15 19:18:46.939926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 26' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-12-15 19:18:46.990524"], ["updated_at", "2016-12-15 19:18:46.990524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 27' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 27"], ["hierarchical", "t"], ["created_at", "2016-12-15 19:18:47.006475"], ["updated_at", "2016-12-15 19:18:47.006475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 28' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 28"], ["created_at", "2016-12-15 19:18:47.009938"], ["updated_at", "2016-12-15 19:18:47.009938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't' Pulitzer::Tag Load (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 't'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:47.019254"], ["updated_at", "2016-12-15 19:18:47.019254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-17"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 17"], ["post_type_id", 1], ["slug", "winterfell-news-17"], ["created_at", "2016-12-15 19:18:47.023058"], ["updated_at", "2016-12-15 19:18:47.023058"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:47.025632"], ["updated_at", "2016-12-15 19:18:47.025632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 1], ["post_id", 1], ["created_at", "2016-12-15 19:18:47.027827"], ["updated_at", "2016-12-15 19:18:47.027827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 29' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 29"], ["created_at", "2016-12-15 19:18:47.030316"], ["updated_at", "2016-12-15 19:18:47.030316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-15 19:18:47.032830"], ["updated_at", "2016-12-15 19:18:47.032830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Post Exists (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" INNER JOIN "pulitzer_versions" ON "pulitzer_posts"."id" = "pulitzer_versions"."post_id" INNER JOIN "pulitzer_post_tags" ON "pulitzer_versions"."id" = "pulitzer_post_tags"."version_id" WHERE "pulitzer_post_tags"."label_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_posts"."id" = ? [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 30' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 30"], ["hierarchical", "t"], ["created_at", "2016-12-15 19:18:47.041960"], ["updated_at", "2016-12-15 19:18:47.041960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 31' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 31"], ["created_at", "2016-12-15 19:18:47.044870"], ["updated_at", "2016-12-15 19:18:47.044870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f' Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."hierarchical" = 'f'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 32' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 32"], ["created_at", "2016-12-15 19:18:47.066540"], ["updated_at", "2016-12-15 19:18:47.066540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 33' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 33"], ["parent_id", 1], ["created_at", "2016-12-15 19:18:47.069404"], ["updated_at", "2016-12-15 19:18:47.069404"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-15 19:18:47.070332' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 34' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 34"], ["parent_id", 1], ["created_at", "2016-12-15 19:18:47.072454"], ["updated_at", "2016-12-15 19:18:47.072454"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-15 19:18:47.073256' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.2ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 2]] Pulitzer::Tag Exists (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."parent_id" = ? AND "pulitzer_tags"."id" = ? [["parent_id", 1], ["id", 3]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 35' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 35"], ["hierarchical", "t"], ["created_at", "2016-12-15 19:18:47.081177"], ["updated_at", "2016-12-15 19:18:47.081177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 36' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 36"], ["created_at", "2016-12-15 19:18:47.083801"], ["updated_at", "2016-12-15 19:18:47.083801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 37' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 37"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-15 19:18:47.087732"], ["updated_at", "2016-12-15 19:18:47.087732"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-15 19:18:47.088720' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 38' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 38"], ["hierarchical", "t"], ["created_at", "2016-12-15 19:18:47.093166"], ["updated_at", "2016-12-15 19:18:47.093166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 39' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 39"], ["created_at", "2016-12-15 19:18:47.095477"], ["updated_at", "2016-12-15 19:18:47.095477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 40' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 40"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-15 19:18:47.097464"], ["updated_at", "2016-12-15 19:18:47.097464"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-15 19:18:47.098215' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 41' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "The north 41"], ["hierarchical", "t"], ["created_at", "2016-12-15 19:18:47.102544"], ["updated_at", "2016-12-15 19:18:47.102544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 42' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 42"], ["created_at", "2016-12-15 19:18:47.104965"], ["updated_at", "2016-12-15 19:18:47.104965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 43' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_tags" ("name", "hierarchical", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "The north 43"], ["hierarchical", "t"], ["parent_id", 1], ["created_at", "2016-12-15 19:18:47.107085"], ["updated_at", "2016-12-15 19:18:47.107085"]] SQL (0.1ms) UPDATE "pulitzer_tags" SET "updated_at" = '2016-12-15 19:18:47.107850' WHERE "pulitzer_tags"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:47.113008"], ["updated_at", "2016-12-15 19:18:47.113008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-18"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 18"], ["post_type_id", 1], ["slug", "winterfell-news-18"], ["created_at", "2016-12-15 19:18:47.117100"], ["updated_at", "2016-12-15 19:18:47.117100"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:47.119314"], ["updated_at", "2016-12-15 19:18:47.119314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 44' LIMIT 1 SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 44"], ["created_at", "2016-12-15 19:18:47.137150"], ["updated_at", "2016-12-15 19:18:47.137150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:18:47.139970"], ["updated_at", "2016-12-15 19:18:47.139970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-19"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 19"], ["post_type_id", 1], ["slug", "winterfell-news-19"], ["created_at", "2016-12-15 19:18:47.142440"], ["updated_at", "2016-12-15 19:18:47.142440"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:47.144012"], ["updated_at", "2016-12-15 19:18:47.144012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:18:47.145679"], ["updated_at", "2016-12-15 19:18:47.145679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-12-15 19:18:47.147681"], ["updated_at", "2016-12-15 19:18:47.147681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.4ms) rollback transaction 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';  (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.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.8ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (0.8ms) 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.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.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.8ms) 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.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:22:02.660061"], ["updated_at", "2016-12-15 19:22:02.660061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-15 19:22:02.766300"], ["updated_at", "2016-12-15 19:22:02.766300"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:22:02.775034"], ["updated_at", "2016-12-15 19:22:02.775034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:22:02.777292"], ["updated_at", "2016-12-15 19:22:02.777292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-15 19:22:02.789883"], ["updated_at", "2016-12-15 19:22:02.789883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:22:02.792428"], ["updated_at", "2016-12-15 19:22:02.792428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-15 19:22:02.795197"], ["updated_at", "2016-12-15 19:22:02.795197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:22:02.796540"], ["updated_at", "2016-12-15 19:22:02.796540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-15 19:22:02.798803"], ["updated_at", "2016-12-15 19:22:02.798803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:22:02.800076"], ["updated_at", "2016-12-15 19:22:02.800076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:22:02.814969"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? [["post_id", 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", 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]] 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]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 45ms (Views: 0.2ms | ActiveRecord: 1.9ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:22:02.861366"], ["updated_at", "2016-12-15 19:22:02.861366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-15 19:22:02.864053"], ["updated_at", "2016-12-15 19:22:02.864053"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:22:02.865774"], ["updated_at", "2016-12-15 19:22:02.865774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:22:02.867871"], ["updated_at", "2016-12-15 19:22:02.867871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-15 19:22:02.870329"], ["updated_at", "2016-12-15 19:22:02.870329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:22:02.871756"], ["updated_at", "2016-12-15 19:22:02.871756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-15 19:22:02.874437"], ["updated_at", "2016-12-15 19:22:02.874437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:22:02.875952"], ["updated_at", "2016-12-15 19:22:02.875952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-15 19:22:02.878373"], ["updated_at", "2016-12-15 19:22:02.878373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:22:02.879739"], ["updated_at", "2016-12-15 19:22:02.879739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:22:02.887333"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:22:02.890104"], ["updated_at", "2016-12-15 19:22:02.890104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 0a168e33-2010-49ef-bd1b-683d34df6615) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:22:02.871756"], ["updated_at", "2016-12-15 19:22:02.871756"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:22:02.906939"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:22:02.875952"], ["updated_at", "2016-12-15 19:22:02.875952"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:22:02.911426"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:22:02.879739"], ["updated_at", "2016-12-15 19:22:02.879739"]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:22:02.916900"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:22:02.919472"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [0a168e33-2010-49ef-bd1b-683d34df6615] Performed Pulitzer::CloneVersionJob from Inline(default) in 28.37ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:22:02.930183"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.1ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.8ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.7ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (8.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (38.2ms) Completed 200 OK in 51ms (Views: 0.4ms | ActiveRecord: 1.0ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:22:02.986909"], ["updated_at", "2016-12-15 19:22:02.986909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-15 19:22:02.989956"], ["updated_at", "2016-12-15 19:22:02.989956"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:22:02.991601"], ["updated_at", "2016-12-15 19:22:02.991601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:22:02.993434"], ["updated_at", "2016-12-15 19:22:02.993434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-15 19:22:02.995905"], ["updated_at", "2016-12-15 19:22:02.995905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:22:02.997346"], ["updated_at", "2016-12-15 19:22:02.997346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-15 19:22:02.999661"], ["updated_at", "2016-12-15 19:22:02.999661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:22:03.000979"], ["updated_at", "2016-12-15 19:22:03.000979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-15 19:22:03.005187"], ["updated_at", "2016-12-15 19:22:03.005187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:22:03.007498"], ["updated_at", "2016-12-15 19:22:03.007498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:22:03.012079"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:22:03.015129"], ["updated_at", "2016-12-15 19:22:03.015129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: a686b0b6-0d29-4bb9-912f-84d089ccc006) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] 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]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:22:02.997346"], ["updated_at", "2016-12-15 19:22:02.997346"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:22:03.025414"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:22:03.000979"], ["updated_at", "2016-12-15 19:22:03.000979"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:22:03.031209"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:22:03.007498"], ["updated_at", "2016-12-15 19:22:03.007498"]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:22:03.036463"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:22:03.039715"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [a686b0b6-0d29-4bb9-912f-84d089ccc006] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.27ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:22:03.050365"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:22:03.052996"], ["updated_at", "2016-12-15 19:22:03.052996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 665b3383-a660-4171-a9bd-be52fa7d895a) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:22:02.997346"], ["updated_at", "2016-12-15 19:22:02.997346"]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:22:03.061014"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:22:03.000979"], ["updated_at", "2016-12-15 19:22:03.000979"]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:22:03.065128"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:22:03.007498"], ["updated_at", "2016-12-15 19:22:03.007498"]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:22:03.071627"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:22:03.074707"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [665b3383-a660-4171-a9bd-be52fa7d895a] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.13ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (7.6ms) Completed 200 OK in 39ms (Views: 0.2ms | ActiveRecord: 2.3ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:22:03.096073"], ["updated_at", "2016-12-15 19:22:03.096073"]]  (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 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-15 19:22:03.098598"], ["updated_at", "2016-12-15 19:22:03.098598"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:22:03.100166"], ["updated_at", "2016-12-15 19:22:03.100166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:22:03.102060"], ["updated_at", "2016-12-15 19:22:03.102060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-15 19:22:03.104516"], ["updated_at", "2016-12-15 19:22:03.104516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:22:03.106093"], ["updated_at", "2016-12-15 19:22:03.106093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-15 19:22:03.108592"], ["updated_at", "2016-12-15 19:22:03.108592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:22:03.109931"], ["updated_at", "2016-12-15 19:22:03.109931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-15 19:22:03.112270"], ["updated_at", "2016-12-15 19:22:03.112270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:22:03.113593"], ["updated_at", "2016-12-15 19:22:03.113593"]]  (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 LIMIT 1 [["version_id", 2]] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "required" = 't', "body" = NULL WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQLite3::SQLException: no such column: required: UPDATE "pulitzer_content_elements" SET "required" = 't', "body" = NULL WHERE "pulitzer_content_elements"."id" = ?  (0.5ms) rollback transaction 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.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.7ms) 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.4ms) 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.0ms) 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';  (0.8ms) 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.9ms) 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.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.8ms) 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.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:23:12.047915"], ["updated_at", "2016-12-15 19:23:12.047915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-15 19:23:12.166592"], ["updated_at", "2016-12-15 19:23:12.166592"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:23:12.174277"], ["updated_at", "2016-12-15 19:23:12.174277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:23:12.176937"], ["updated_at", "2016-12-15 19:23:12.176937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-15 19:23:12.188910"], ["updated_at", "2016-12-15 19:23:12.188910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:23:12.191579"], ["updated_at", "2016-12-15 19:23:12.191579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-15 19:23:12.194478"], ["updated_at", "2016-12-15 19:23:12.194478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:23:12.196109"], ["updated_at", "2016-12-15 19:23:12.196109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-15 19:23:12.198991"], ["updated_at", "2016-12-15 19:23:12.198991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:23:12.200714"], ["updated_at", "2016-12-15 19:23:12.200714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:23:12.216248"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? [["post_id", 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]] 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]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 31ms (Views: 0.3ms | ActiveRecord: 2.1ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]  (1.2ms) rollback transaction  (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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:23:12.249972"], ["updated_at", "2016-12-15 19:23:12.249972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-15 19:23:12.252818"], ["updated_at", "2016-12-15 19:23:12.252818"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:23:12.254756"], ["updated_at", "2016-12-15 19:23:12.254756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:23:12.256484"], ["updated_at", "2016-12-15 19:23:12.256484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-15 19:23:12.259355"], ["updated_at", "2016-12-15 19:23:12.259355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:23:12.260794"], ["updated_at", "2016-12-15 19:23:12.260794"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-15 19:23:12.264339"], ["updated_at", "2016-12-15 19:23:12.264339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:23:12.266393"], ["updated_at", "2016-12-15 19:23:12.266393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-15 19:23:12.269321"], ["updated_at", "2016-12-15 19:23:12.269321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:23:12.271001"], ["updated_at", "2016-12-15 19:23:12.271001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:23:12.277821"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:23:12.280195"], ["updated_at", "2016-12-15 19:23:12.280195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c66d2577-c393-44e7-9c3d-15298a809866) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:23:12.260794"], ["updated_at", "2016-12-15 19:23:12.260794"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:23:12.297525"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:23:12.266393"], ["updated_at", "2016-12-15 19:23:12.266393"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:23:12.301662"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:23:12.271001"], ["updated_at", "2016-12-15 19:23:12.271001"]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:23:12.305847"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:23:12.308143"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [c66d2577-c393-44e7-9c3d-15298a809866] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.34ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:23:12.319712"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.0ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.0ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.3ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (37.3ms) Completed 200 OK in 52ms (Views: 0.5ms | ActiveRecord: 1.1ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:23:12.377559"], ["updated_at", "2016-12-15 19:23:12.377559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-15 19:23:12.380119"], ["updated_at", "2016-12-15 19:23:12.380119"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:23:12.381685"], ["updated_at", "2016-12-15 19:23:12.381685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:23:12.383515"], ["updated_at", "2016-12-15 19:23:12.383515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-15 19:23:12.387219"], ["updated_at", "2016-12-15 19:23:12.387219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:23:12.388931"], ["updated_at", "2016-12-15 19:23:12.388931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-15 19:23:12.391702"], ["updated_at", "2016-12-15 19:23:12.391702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:23:12.393196"], ["updated_at", "2016-12-15 19:23:12.393196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-15 19:23:12.395593"], ["updated_at", "2016-12-15 19:23:12.395593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:23:12.397164"], ["updated_at", "2016-12-15 19:23:12.397164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:23:12.401409"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:23:12.404054"], ["updated_at", "2016-12-15 19:23:12.404054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b81297b0-a61b-4136-ac81-959ad83e961c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:23:12.388931"], ["updated_at", "2016-12-15 19:23:12.388931"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:23:12.413292"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:23:12.393196"], ["updated_at", "2016-12-15 19:23:12.393196"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:23:12.419790"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:23:12.397164"], ["updated_at", "2016-12-15 19:23:12.397164"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:23:12.425063"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:23:12.427588"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b81297b0-a61b-4136-ac81-959ad83e961c] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.93ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:23:12.438504"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:23:12.441239"], ["updated_at", "2016-12-15 19:23:12.441239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: b7f19d80-50d2-4a0c-90c0-c8be556795b0) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:23:12.388931"], ["updated_at", "2016-12-15 19:23:12.388931"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:23:12.451429"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:23:12.393196"], ["updated_at", "2016-12-15 19:23:12.393196"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:23:12.456400"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:23:12.397164"], ["updated_at", "2016-12-15 19:23:12.397164"]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:23:12.461111"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:23:12.463357"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [b7f19d80-50d2-4a0c-90c0-c8be556795b0] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.58ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (7.9ms) Completed 200 OK in 40ms (Views: 0.2ms | ActiveRecord: 2.4ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:23:12.485909"], ["updated_at", "2016-12-15 19:23:12.485909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-15 19:23:12.488724"], ["updated_at", "2016-12-15 19:23:12.488724"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:23:12.491218"], ["updated_at", "2016-12-15 19:23:12.491218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:23:12.493167"], ["updated_at", "2016-12-15 19:23:12.493167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-15 19:23:12.496395"], ["updated_at", "2016-12-15 19:23:12.496395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:23:12.499405"], ["updated_at", "2016-12-15 19:23:12.499405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-15 19:23:12.502640"], ["updated_at", "2016-12-15 19:23:12.502640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:23:12.504190"], ["updated_at", "2016-12-15 19:23:12.504190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-15 19:23:12.506671"], ["updated_at", "2016-12-15 19:23:12.506671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:23:12.508038"], ["updated_at", "2016-12-15 19:23:12.508038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 2]]  (0.6ms) rollback transaction 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.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.8ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (0.9ms) 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';  (0.8ms) 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.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:24:23.314154"], ["updated_at", "2016-12-15 19:24:23.314154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-15 19:24:23.437179"], ["updated_at", "2016-12-15 19:24:23.437179"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:23.445859"], ["updated_at", "2016-12-15 19:24:23.445859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:23.449015"], ["updated_at", "2016-12-15 19:24:23.449015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-15 19:24:23.461896"], ["updated_at", "2016-12-15 19:24:23.461896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:24:23.464257"], ["updated_at", "2016-12-15 19:24:23.464257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-15 19:24:23.467140"], ["updated_at", "2016-12-15 19:24:23.467140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:24:23.469004"], ["updated_at", "2016-12-15 19:24:23.469004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-15 19:24:23.472056"], ["updated_at", "2016-12-15 19:24:23.472056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:24:23.473506"], ["updated_at", "2016-12-15 19:24:23.473506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:24:23.488588"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? [["post_id", 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]] 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]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]] SQL (0.2ms) DELETE FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 32ms (Views: 0.2ms | ActiveRecord: 2.0ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:24:23.521587"], ["updated_at", "2016-12-15 19:24:23.521587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-15 19:24:23.524798"], ["updated_at", "2016-12-15 19:24:23.524798"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:23.526706"], ["updated_at", "2016-12-15 19:24:23.526706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:23.528568"], ["updated_at", "2016-12-15 19:24:23.528568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-15 19:24:23.531028"], ["updated_at", "2016-12-15 19:24:23.531028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:24:23.532426"], ["updated_at", "2016-12-15 19:24:23.532426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-15 19:24:23.534931"], ["updated_at", "2016-12-15 19:24:23.534931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:24:23.536304"], ["updated_at", "2016-12-15 19:24:23.536304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-15 19:24:23.540085"], ["updated_at", "2016-12-15 19:24:23.540085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:24:23.541866"], ["updated_at", "2016-12-15 19:24:23.541866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:24:23.549024"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:24:23.551581"], ["updated_at", "2016-12-15 19:24:23.551581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 3ad89853-5fb3-4ae1-9f26-0b44da342a48) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:24:23.532426"], ["updated_at", "2016-12-15 19:24:23.532426"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:23.567946"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:24:23.536304"], ["updated_at", "2016-12-15 19:24:23.536304"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:23.572703"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:24:23.541866"], ["updated_at", "2016-12-15 19:24:23.541866"]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:23.576579"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:24:23.578708"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [3ad89853-5fb3-4ae1-9f26-0b44da342a48] Performed Pulitzer::CloneVersionJob from Inline(default) in 26.41ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:24:23.590886"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (0.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (2.7ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.7ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (6.3ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.6ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (6.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (35.7ms) Completed 200 OK in 50ms (Views: 0.4ms | ActiveRecord: 1.1ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 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", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:24:23.647860"], ["updated_at", "2016-12-15 19:24:23.647860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-15 19:24:23.650745"], ["updated_at", "2016-12-15 19:24:23.650745"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:23.652865"], ["updated_at", "2016-12-15 19:24:23.652865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:23.654543"], ["updated_at", "2016-12-15 19:24:23.654543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-15 19:24:23.657109"], ["updated_at", "2016-12-15 19:24:23.657109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:24:23.658588"], ["updated_at", "2016-12-15 19:24:23.658588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-15 19:24:23.661613"], ["updated_at", "2016-12-15 19:24:23.661613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:24:23.663584"], ["updated_at", "2016-12-15 19:24:23.663584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-15 19:24:23.666124"], ["updated_at", "2016-12-15 19:24:23.666124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:24:23.667565"], ["updated_at", "2016-12-15 19:24:23.667565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:24:23.672051"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:24:23.674596"], ["updated_at", "2016-12-15 19:24:23.674596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 7159e56a-e518-4ea9-b9fb-2ee380a197f8) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] Pulitzer::ContentElementType Load (0.2ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:24:23.658588"], ["updated_at", "2016-12-15 19:24:23.658588"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] SQL (0.2ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:23.683304"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:24:23.663584"], ["updated_at", "2016-12-15 19:24:23.663584"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:23.689273"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:24:23.667565"], ["updated_at", "2016-12-15 19:24:23.667565"]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:23.694144"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:24:23.696470"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [7159e56a-e518-4ea9-b9fb-2ee380a197f8] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.24ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:24:23.706545"], ["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:24:23.709113"], ["updated_at", "2016-12-15 19:24:23.709113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 39adb535-fc24-46b8-9b90-c59d79f64a47) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:24:23.658588"], ["updated_at", "2016-12-15 19:24:23.658588"]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:24:23.716366"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:24:23.663584"], ["updated_at", "2016-12-15 19:24:23.663584"]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:24:23.720597"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:24:23.667565"], ["updated_at", "2016-12-15 19:24:23.667565"]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:24:23.725352"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:24:23.727775"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [39adb535-fc24-46b8-9b90-c59d79f64a47] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.05ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (7.2ms) Completed 200 OK in 35ms (Views: 0.3ms | ActiveRecord: 2.0ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:24:23.753723"], ["updated_at", "2016-12-15 19:24:23.753723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-15 19:24:23.757085"], ["updated_at", "2016-12-15 19:24:23.757085"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:23.758880"], ["updated_at", "2016-12-15 19:24:23.758880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:23.760366"], ["updated_at", "2016-12-15 19:24:23.760366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-15 19:24:23.763068"], ["updated_at", "2016-12-15 19:24:23.763068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:24:23.764573"], ["updated_at", "2016-12-15 19:24:23.764573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-15 19:24:23.767443"], ["updated_at", "2016-12-15 19:24:23.767443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:24:23.768880"], ["updated_at", "2016-12-15 19:24:23.768880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-15 19:24:23.771324"], ["updated_at", "2016-12-15 19:24:23.771324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:24:23.772727"], ["updated_at", "2016-12-15 19:24:23.772727"]]  (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 LIMIT 1 [["version_id", 2]] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "body" = NULL, "post_type_content_element_type_id" = NULL WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"active", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:24:23.783256"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:24:23.786175"], ["updated_at", "2016-12-15 19:24:23.786175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: caef17a9-2fd7-4c6a-93b9-2b88f0cee157) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:24:23.764573"], ["updated_at", "2016-12-15 19:24:23.764573"]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:23.795376"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:24:23.768880"], ["updated_at", "2016-12-15 19:24:23.768880"]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:23.799981"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:24:23.772727"], ["updated_at", "2016-12-15 19:24:23.772727"]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:23.804508"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:24:23.806798"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [caef17a9-2fd7-4c6a-93b9-2b88f0cee157] Performed Pulitzer::CloneVersionJob from Inline(default) in 21.7ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (0.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (0.6ms) Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (4.3ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.2ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.4ms) Pulitzer::ContentElementType Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (8.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (20.2ms) Completed 200 OK in 54ms (Views: 0.5ms | ActiveRecord: 2.3ms)  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.2ms) 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.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.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions';  (0.8ms) 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';  (0.8ms) 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.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.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:24:44.910006"], ["updated_at", "2016-12-15 19:24:44.910006"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-15 19:24:45.031163"], ["updated_at", "2016-12-15 19:24:45.031163"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:45.039529"], ["updated_at", "2016-12-15 19:24:45.039529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:45.041875"], ["updated_at", "2016-12-15 19:24:45.041875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-15 19:24:45.054404"], ["updated_at", "2016-12-15 19:24:45.054404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:24:45.057062"], ["updated_at", "2016-12-15 19:24:45.057062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-15 19:24:45.060224"], ["updated_at", "2016-12-15 19:24:45.060224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:24:45.062017"], ["updated_at", "2016-12-15 19:24:45.062017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-15 19:24:45.064768"], ["updated_at", "2016-12-15 19:24:45.064768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:24:45.066195"], ["updated_at", "2016-12-15 19:24:45.066195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:24:45.080730"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? [["post_id", 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]] 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]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 31ms (Views: 0.2ms | ActiveRecord: 1.8ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:24:45.114372"], ["updated_at", "2016-12-15 19:24:45.114372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-15 19:24:45.117149"], ["updated_at", "2016-12-15 19:24:45.117149"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:45.119526"], ["updated_at", "2016-12-15 19:24:45.119526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:45.121493"], ["updated_at", "2016-12-15 19:24:45.121493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-15 19:24:45.124416"], ["updated_at", "2016-12-15 19:24:45.124416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:24:45.126078"], ["updated_at", "2016-12-15 19:24:45.126078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-15 19:24:45.128803"], ["updated_at", "2016-12-15 19:24:45.128803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:24:45.130342"], ["updated_at", "2016-12-15 19:24:45.130342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-15 19:24:45.132708"], ["updated_at", "2016-12-15 19:24:45.132708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:24:45.134024"], ["updated_at", "2016-12-15 19:24:45.134024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:24:45.140661"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:24:45.144637"], ["updated_at", "2016-12-15 19:24:45.144637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 28b46ad8-acdb-46ec-9d01-40351d18e386) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:24:45.126078"], ["updated_at", "2016-12-15 19:24:45.126078"]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:45.161791"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:24:45.130342"], ["updated_at", "2016-12-15 19:24:45.130342"]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:45.166272"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:24:45.134024"], ["updated_at", "2016-12-15 19:24:45.134024"]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:45.170326"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:24:45.172552"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [28b46ad8-acdb-46ec-9d01-40351d18e386] Performed Pulitzer::CloneVersionJob from Inline(default) in 25.92ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:24:45.183457"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (0.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (2.9ms) Pulitzer::PostTag Load (0.2ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (5.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (7.8ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.6ms) Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (37.5ms) Completed 200 OK in 54ms (Views: 0.5ms | ActiveRecord: 1.1ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:24:45.242334"], ["updated_at", "2016-12-15 19:24:45.242334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-15 19:24:45.244871"], ["updated_at", "2016-12-15 19:24:45.244871"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:45.246634"], ["updated_at", "2016-12-15 19:24:45.246634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:45.249007"], ["updated_at", "2016-12-15 19:24:45.249007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-15 19:24:45.252421"], ["updated_at", "2016-12-15 19:24:45.252421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:24:45.253983"], ["updated_at", "2016-12-15 19:24:45.253983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-15 19:24:45.258492"], ["updated_at", "2016-12-15 19:24:45.258492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:24:45.260094"], ["updated_at", "2016-12-15 19:24:45.260094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-15 19:24:45.262910"], ["updated_at", "2016-12-15 19:24:45.262910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:24:45.264470"], ["updated_at", "2016-12-15 19:24:45.264470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:24:45.269448"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:24:45.272380"], ["updated_at", "2016-12-15 19:24:45.272380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 932a776d-4681-421b-8750-80b29914dff4) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:24:45.253983"], ["updated_at", "2016-12-15 19:24:45.253983"]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:45.281863"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:24:45.260094"], ["updated_at", "2016-12-15 19:24:45.260094"]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:45.288052"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:24:45.264470"], ["updated_at", "2016-12-15 19:24:45.264470"]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:24:45.292869"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:24:45.295424"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [932a776d-4681-421b-8750-80b29914dff4] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.95ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:24:45.306661"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:24:45.309198"], ["updated_at", "2016-12-15 19:24:45.309198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 44d57ace-f244-40e8-84fe-3cb9ba2c24c2) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:24:45.253983"], ["updated_at", "2016-12-15 19:24:45.253983"]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:24:45.316877"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:24:45.260094"], ["updated_at", "2016-12-15 19:24:45.260094"]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:24:45.321000"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:24:45.264470"], ["updated_at", "2016-12-15 19:24:45.264470"]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:24:45.324967"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:24:45.327504"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [44d57ace-f244-40e8-84fe-3cb9ba2c24c2] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.28ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (7.6ms) Completed 200 OK in 35ms (Views: 0.3ms | ActiveRecord: 2.0ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:24:45.354560"], ["updated_at", "2016-12-15 19:24:45.354560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-15 19:24:45.357361"], ["updated_at", "2016-12-15 19:24:45.357361"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:24:45.358995"], ["updated_at", "2016-12-15 19:24:45.358995"]]  (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", "2016-12-15 19:24:45.360524"], ["updated_at", "2016-12-15 19:24:45.360524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-15 19:24:45.363447"], ["updated_at", "2016-12-15 19:24:45.363447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:24:45.365449"], ["updated_at", "2016-12-15 19:24:45.365449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-15 19:24:45.368742"], ["updated_at", "2016-12-15 19:24:45.368742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:24:45.370425"], ["updated_at", "2016-12-15 19:24:45.370425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-15 19:24:45.373570"], ["updated_at", "2016-12-15 19:24:45.373570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:24:45.375329"], ["updated_at", "2016-12-15 19:24:45.375329"]]  (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 LIMIT 1 [["version_id", 2]] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "body" = NULL, "post_type_content_element_type_id" = NULL WHERE "pulitzer_content_elements"."id" = ? [["id", 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 LIMIT 1 [["version_id", 2]] 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]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"active", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:26:06.795056"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:26:06.799137"], ["updated_at", "2016-12-15 19:26:06.799137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: f3faa65e-e89a-42fc-8924-a6085b08b223) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:24:45.365449"], ["updated_at", "2016-12-15 19:24:45.365449"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.3ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:26:06.814417"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:24:45.370425"], ["updated_at", "2016-12-15 19:24:45.370425"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:26:06.821484"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:24:45.375329"], ["updated_at", "2016-12-15 19:24:45.375329"]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:26:06.826466"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:26:06.831319"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [f3faa65e-e89a-42fc-8924-a6085b08b223] Performed Pulitzer::CloneVersionJob from Inline(default) in 33.09ms Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (0.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (0.8ms) Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (5.0ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (5.2ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (3.6ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (9.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (23.0ms) Completed 200 OK in 72ms (Views: 0.8ms | ActiveRecord: 3.6ms)  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.0ms) 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.1ms) 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.8ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';  (0.9ms) DELETE FROM "pulitzer_post_types";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';  (0.7ms) DELETE FROM "pulitzer_partials";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials';  (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.8ms) 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.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:26:11.985607"], ["updated_at", "2016-12-15 19:26:11.985607"]]  (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 1 [["slug", "winterfell-news-1"]] SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-12-15 19:26:12.104118"], ["updated_at", "2016-12-15 19:26:12.104118"]] SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:26:12.111644"], ["updated_at", "2016-12-15 19:26:12.111644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:26:12.115349"], ["updated_at", "2016-12-15 19:26:12.115349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-12-15 19:26:12.128290"], ["updated_at", "2016-12-15 19:26:12.128290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:26:12.130619"], ["updated_at", "2016-12-15 19:26:12.130619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-12-15 19:26:12.133454"], ["updated_at", "2016-12-15 19:26:12.133454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:26:12.135356"], ["updated_at", "2016-12-15 19:26:12.135356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-12-15 19:26:12.138535"], ["updated_at", "2016-12-15 19:26:12.138535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:26:12.140131"], ["updated_at", "2016-12-15 19:26:12.140131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:26:12.155439"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? [["post_id", 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", 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]] 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]] SQL (0.1ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."id" = ? [["id", 3]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] SQL (0.0ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 33ms (Views: 0.2ms | ActiveRecord: 1.9ms) Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:26:12.188965"], ["updated_at", "2016-12-15 19:26:12.188965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-12-15 19:26:12.191450"], ["updated_at", "2016-12-15 19:26:12.191450"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:26:12.192891"], ["updated_at", "2016-12-15 19:26:12.192891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:26:12.194917"], ["updated_at", "2016-12-15 19:26:12.194917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-12-15 19:26:12.198018"], ["updated_at", "2016-12-15 19:26:12.198018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:26:12.199598"], ["updated_at", "2016-12-15 19:26:12.199598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-12-15 19:26:12.202079"], ["updated_at", "2016-12-15 19:26:12.202079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:26:12.203509"], ["updated_at", "2016-12-15 19:26:12.203509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-12-15 19:26:12.205999"], ["updated_at", "2016-12-15 19:26:12.205999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_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"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:26:12.207424"], ["updated_at", "2016-12-15 19:26:12.207424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:26:12.213918"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:26:12.216256"], ["updated_at", "2016-12-15 19:26:12.216256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ab2edc66-f5ad-410a-b796-7d67c035b04b) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:26:12.199598"], ["updated_at", "2016-12-15 19:26:12.199598"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:26:12.232852"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:26:12.203509"], ["updated_at", "2016-12-15 19:26:12.203509"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:26:12.237567"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "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"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:26:12.207424"], ["updated_at", "2016-12-15 19:26:12.207424"]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:26:12.241633"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:26:12.244102"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [ab2edc66-f5ad-410a-b796-7d67c035b04b] Performed Pulitzer::CloneVersionJob from Inline(default) in 27.11ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"2"} Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:26:12.254631"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (1.1ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (3.9ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.9ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (7.1ms) Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (3.8ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (4.0ms) Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (39.6ms) Completed 200 OK in 54ms (Views: 0.5ms | ActiveRecord: 1.0ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:26:12.315594"], ["updated_at", "2016-12-15 19:26:12.315594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-12-15 19:26:12.318713"], ["updated_at", "2016-12-15 19:26:12.318713"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:26:12.320778"], ["updated_at", "2016-12-15 19:26:12.320778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:26:12.322337"], ["updated_at", "2016-12-15 19:26:12.322337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-12-15 19:26:12.325099"], ["updated_at", "2016-12-15 19:26:12.325099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:26:12.326597"], ["updated_at", "2016-12-15 19:26:12.326597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-12-15 19:26:12.329320"], ["updated_at", "2016-12-15 19:26:12.329320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:26:12.330689"], ["updated_at", "2016-12-15 19:26:12.330689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-12-15 19:26:12.333045"], ["updated_at", "2016-12-15 19:26:12.333045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:26:12.334390"], ["updated_at", "2016-12-15 19:26:12.334390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-12-15 19:26:12.338853"], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.0ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:26:12.341324"], ["updated_at", "2016-12-15 19:26:12.341324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 35aae6af-7e7d-426c-82a4-9d39c2296c7c) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:26:12.326597"], ["updated_at", "2016-12-15 19:26:12.326597"]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:26:12.349510"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:26:12.330689"], ["updated_at", "2016-12-15 19:26:12.330689"]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:26:12.355668"], ["id", 5]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:26:12.334390"], ["updated_at", "2016-12-15 19:26:12.334390"]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-12-15 19:26:12.360977"], ["id", 6]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:26:12.363420"], ["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [35aae6af-7e7d-426c-82a4-9d39c2296c7c] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.35ms Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"abandoned", "id"=>"3"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-12-15 19:26:12.374624"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" INNER JOIN "pulitzer_post_tags" ON "pulitzer_tags"."id" = "pulitzer_post_tags"."label_id" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 3], ["label_type", "Pulitzer::Tag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-12-15 19:26:12.379418"], ["updated_at", "2016-12-15 19:26:12.379418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 425d1dfe-f0f7-48b7-b6f3-b48ddba47226) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] Pulitzer::CloneVersion !!! [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] /Users/eric/.rvm/gems/ruby-2.3.1/bin/rspec [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-12-15 19:26:12.326597"], ["updated_at", "2016-12-15 19:26:12.326597"]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:26:12.388154"], ["id", 7]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-12-15 19:26:12.330689"], ["updated_at", "2016-12-15 19:26:12.330689"]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:26:12.392131"], ["id", 8]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-12-15 19:26:12.334390"], ["updated_at", "2016-12-15 19:26:12.334390"]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] SQL (0.0ms) UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-12-15 19:26:12.396194"], ["id", 9]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-12-15 19:26:12.398406"], ["id", 4]] [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226]  (0.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] [Pulitzer::CloneVersionJob] [425d1dfe-f0f7-48b7-b6f3-b48ddba47226] Performed Pulitzer::CloneVersionJob from Inline(default) in 19.83ms Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (7.4ms) Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 2.2ms) Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]] Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pulitzer_post_type_content_element_types" ("label", "required", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["label", "test"], ["required", "t"], ["created_at", "2016-12-15 19:26:12.422448"], ["updated_at", "2016-12-15 19:26:12.422448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-12-15 19:26:12.425795"], ["updated_at", "2016-12-15 19:26:12.425795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-12-15 19:26:12.428202"], ["updated_at", "2016-12-15 19:26:12.428202"]] SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:26:12.430028"], ["updated_at", "2016-12-15 19:26:12.430028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-12-15 19:26:12.431472"], ["updated_at", "2016-12-15 19:26:12.431472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-12-15 19:26:12.433870"], ["updated_at", "2016-12-15 19:26:12.433870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-12-15 19:26:12.435267"], ["updated_at", "2016-12-15 19:26:12.435267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-12-15 19:26:12.437764"], ["updated_at", "2016-12-15 19:26:12.437764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-12-15 19:26:12.439188"], ["updated_at", "2016-12-15 19:26:12.439188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-12-15 19:26:12.442038"], ["updated_at", "2016-12-15 19:26:12.442038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-12-15 19:26:12.443657"], ["updated_at", "2016-12-15 19:26:12.443657"]]  (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 LIMIT 1 [["version_id", 2]] SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "body" = NULL, "post_type_content_element_type_id" = 1 WHERE "pulitzer_content_elements"."id" = ? [["id", 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 LIMIT 1 [["version_id", 2]] Processing by Pulitzer::VersionsController#update as HTML Parameters: {"status"=>"active", "id"=>"2"} Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_post_type_content_element_types"."id" = "pulitzer_content_elements"."post_type_content_element_type_id" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_post_type_content_element_types"."required" = 't' ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_slug.html.erb (0.6ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/posts/_show_wrapper.html.erb (0.8ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (5.4ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (5.8ms) Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "SearchLocation"]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show.html.erb (4.3ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/post_tags/_show_wrapper.html.erb (4.5ms) Pulitzer::ContentElementType Exists (0.3ms) SELECT 1 AS one FROM "pulitzer_content_element_types" INNER JOIN "pulitzer_post_type_content_element_types" ON "pulitzer_content_element_types"."id" = "pulitzer_post_type_content_element_types"."content_element_type_id" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::FreeFormSectionType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? LIMIT 1 [["post_type_id", 1]] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? LIMIT 1 [["post_id", 1], ["status", 1]] Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_form.html.erb (7.5ms) Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/versions/_edit.html.erb (26.2ms) Completed 409 Conflict in 31ms (Views: 0.4ms | ActiveRecord: 0.8ms)  (0.3ms) rollback transaction